mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update app.js
This commit is contained in:
parent
644268698a
commit
84261c2a55
@ -11,8 +11,9 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
addStyle(textContent) {
|
addStyle(textContent) {
|
||||||
|
const style = document.head.getElementsByTagName('style')[0] || null;
|
||||||
const object = Object.assign(document.createElement('style'), {textContent});
|
const object = Object.assign(document.createElement('style'), {textContent});
|
||||||
document.head.insertBefore(object, document.head.getElementsByTagName('style')[0] || null);
|
document.head.insertBefore(object, style);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -22,7 +23,7 @@
|
|||||||
|
|
||||||
const app = Vue.createApp({
|
const app = Vue.createApp({
|
||||||
name: 'app',
|
name: 'app',
|
||||||
components: {'layout': await loadVue('./static/template/layout.vue')}
|
components: {layout: await loadVue('./static/template/layout.vue')}
|
||||||
});
|
});
|
||||||
|
|
||||||
const router = VueRouter.createRouter({
|
const router = VueRouter.createRouter({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user