调整一下代码

This commit is contained in:
aixianling
2022-05-27 16:45:46 +08:00
parent ddb9afa4a9
commit bfb54de844
26 changed files with 13 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ const getFileInfo = (app, file) => {
if (/^App/.test(app.name)) {
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'),type:'mp'})
apps.list.push({id: file.replace(/\.\/?(vue)?/g, '')?.replace(/[\\\/]/g,'_'), name, label, path, libPath: file?.replace(/\\/g, '/')?.replace(/^src(\/.+)\.vue/, '$1'),type:'mp'})
}
}
const saveApps = app => {