增设埋点

This commit is contained in:
aixianling
2022-05-20 09:28:20 +08:00
parent d58102f837
commit cd34e7589a

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