diff --git a/jeecgboot-vue3/src/router/routes/modules/applet.ts b/jeecgboot-vue3/src/router/routes/modules/applet.ts deleted file mode 100644 index f5d1335..0000000 --- a/jeecgboot-vue3/src/router/routes/modules/applet.ts +++ /dev/null @@ -1,48 +0,0 @@ -import type { AppRouteModule } from '/@/router/types'; - -import { LAYOUT } from '/@/router/constant'; -import { t } from '/@/hooks/web/useI18n'; - -const applet: AppRouteModule = { - path: '/applet', - name: 'Applet', - component: LAYOUT, - redirect: '/applet/product', - meta: { - orderNo: 1000, - icon: 'ion:phone-portrait-outline', - title: '小程序管理', - }, - children: [ - { - path: 'product', - name: 'AppletProduct', - redirect: '/applet/product/list', - meta: { - title: '产品管理', - }, - children: [ - { - path: 'list', - name: 'AppletProductList', - component: () => import('/@/views/applet/product/AppletProductList.vue'), - meta: { - title: '产品列表', - }, - }, - { - path: 'spec-config', - name: 'AppletProductSpecConfig', - component: () => import('/@/views/applet/product/AppletProductSpecConfig.vue'), - meta: { - title: '产品规格配置', - hideMenu: true, - currentActiveMenu: '/applet/product/list', - }, - }, - ], - }, - ], -}; - -export default applet; \ No newline at end of file diff --git a/jeecgboot-vue3/src/router/routes/staticRouter.ts b/jeecgboot-vue3/src/router/routes/staticRouter.ts index e7e95e1..e856af7 100644 --- a/jeecgboot-vue3/src/router/routes/staticRouter.ts +++ b/jeecgboot-vue3/src/router/routes/staticRouter.ts @@ -20,4 +20,46 @@ export const AI_ROUTE: AppRouteRecordRaw = { ], }; -export const staticRoutesList = [AI_ROUTE]; +export const APPLET_ROUTE: AppRouteRecordRaw = { + path: '/applet', + name: 'Applet', + component: LAYOUT, + redirect: '/applet/product', + meta: { + orderNo: 1000, + icon: 'ion:phone-portrait-outline', + title: '小程序管理', + }, + children: [ + { + path: 'product', + name: 'AppletProduct', + redirect: '/applet/product/list', + meta: { + title: '产品管理', + }, + children: [ + { + path: 'list', + name: 'AppletProductList', + component: () => import('/@/views/applet/product/AppletProductList.vue'), + meta: { + title: '产品列表', + }, + }, + { + path: 'spec-config', + name: 'AppletProductSpecConfig', + component: () => import('/@/views/applet/product/AppletProductSpecConfig.vue'), + meta: { + title: '产品规格配置', + hideMenu: true, + currentActiveMenu: '/applet/product/list', + }, + }, + ], + }, + ], +}; + +export const staticRoutesList = [AI_ROUTE, APPLET_ROUTE];