Update app.js

This commit is contained in:
Anyon 2021-12-01 10:29:47 +08:00
parent 04a114ad5b
commit b704ec8a8c

View File

@ -1,9 +1,17 @@
/*! 静态插件库路径 */
window.baseRoot = (function (src) {
return src.substring(0, src.lastIndexOf("/") + 1);
})(document.scripts[document.scripts.length - 1].src);
console.log('baseRoot', baseRoot)
;(async () => { ;(async () => {
const options = { const options = {
moduleCache: { moduleCache: {
vue: Vue, less: less vue: Vue, less: less
}, },
getFile(url) { getFile(url) {
document.get
console.log('load.file', url) console.log('load.file', url)
return fetch(url).then(res => { return fetch(url).then(res => {
if (res.ok) { if (res.ok) {