|
|
|
@ -157,11 +157,15 @@ export const useUserStore = defineStore('app-user', {
|
|
|
|
|
|
|
|
|
|
const component = __menu.path.replaceAll(/\/:[\s|\S]*/g, '') |
|
|
|
|
|
|
|
|
|
let isPadIndexExtension = false |
|
|
|
|
if (!component.endsWith('index') && !/\/:/.test(__menu.path)) |
|
|
|
|
isPadIndexExtension = true |
|
|
|
|
|
|
|
|
|
menus.push({ |
|
|
|
|
id: __menu.id, |
|
|
|
|
parentId: __menu.parentId, |
|
|
|
|
name: __menu.name, |
|
|
|
|
component: `${component}${component.endsWith('index') ? '' : '/index'}.vue`, |
|
|
|
|
component: `${component}${isPadIndexExtension ? '/index' : ''}.vue`, |
|
|
|
|
componentName, |
|
|
|
|
path: __menu.path, |
|
|
|
|
icon: __menu.source, |
|
|
|
|