diff --git a/bin/pages.js b/bin/pages.js index be121c2..2a15db1 100644 --- a/bin/pages.js +++ b/bin/pages.js @@ -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 => {