调整下脚本

This commit is contained in:
aixianling
2022-05-16 10:01:40 +08:00
parent 12bbe691e8
commit 12089dced6

View File

@@ -12,8 +12,9 @@ const getFileInfo = (app, file) => {
app.style = {navigationBarTitleText: app.label}
}
if (/^App/.test(app.name)) {
let {name, label} = app
apps.list.push({id: name, name, label, path: `/mods/${name}/${name}`, libPath: file?.replace(/\\/g, '/')?.replace(/^src(\/.+)\.vue/, '$1')})
let {name, label} = app,
path = app.path.replace(/.+[\\\/]([^\\\/]+)[\\\/]([^\\\/]+)$/g,`/mods/$1/$2`)
apps.list.push({id: name, name, label, path, libPath: file?.replace(/\\/g, '/')?.replace(/^src(\/.+)\.vue/, '$1')})
}
}
const saveApps = app => {