在仓库制作打包脚本

This commit is contained in:
aixianling
2024-10-12 16:17:37 +08:00
parent a5e0f3a6c5
commit 043aaf8399
8 changed files with 42 additions and 40 deletions

View File

@@ -20,7 +20,7 @@ const signOut = () => commit("signOut"),
const loadApps = () => {
//新App的自动化格式
waiting.init({innerHTML: '应用加载中..'})
let apps = require.context('../../apps', true, /\.(\/.+)\/App[A-Z][^\/]+\.vue$/, "lazy")
let apps = require.context('../apps', true, /\.(\/.+)\/App[A-Z][^\/]+\.vue$/, "lazy")
return Promise.all(apps.keys().map(path => apps(path).then(file => {
if (file.default) {
let {name} = file.default