增加字体支持

This commit is contained in:
Anyon 2021-12-13 18:10:56 +08:00
parent 8a92c6f658
commit 8af7440af4
2 changed files with 7534 additions and 4 deletions

View File

@ -1,7 +1,6 @@
/*! 项目应用根路径 */ /*! 项目应用根路径 */
window.appRoot = (function (script) { window.appRoot = (function (script) {
let src = script.src.split('/').slice(3); return '/' + script.src.split('/').slice(3, -2).join('/') + '/';
return src.pop(), src.pop(), '/' + src.join('/') + '/';
})(document.querySelector('script[src][type=module]:last-child')); })(document.querySelector('script[src][type=module]:last-child'));
;(async () => { ;(async () => {
@ -86,8 +85,8 @@ window.appRoot = (function (script) {
})); }));
// 全局字体文件 // 全局字体文件
// const icons = await loadVue("https://unpkg.com/@element-plus/icons@0.0.11/lib/index.js"); const icons = await loadVue("/static/plugs/core/vue.element.icons.js");
// for (let i in icons) app.component(i, icons[i]); for (let i in icons) app.component(i, icons[i]);
app.use(router).use(ElementPlus).mount(document.body); app.use(router).use(ElementPlus).mount(document.body);

File diff suppressed because it is too large Load Diff