拼图汇报

This commit is contained in:
yanran200730
2022-05-31 10:38:53 +08:00
parent 39df6fb9ea
commit 13de5e0775
7 changed files with 150 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ const getFileInfo = (app, file) => {
let {name, label} = app,
path = app.path.replace(/.+[\\\/]([^\\\/]+)[\\\/]([^\\\/]+)$/g, `/apps/$1/$2`)
apps.list.push({
id: file.replace(/\.\/?(vue)?/g, '')?.replace(/[\\\/]/g, '_'),
id: file.replace(/\.\/?(vue)?/g, '').replace(/[\\\/]/g, '_'),
name,
label,
path,