调整下脚本
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user