From 4d5109473f16c24530b797cd9aa6e48f36d862e9 Mon Sep 17 00:00:00 2001 From: viarotel Date: Thu, 10 Aug 2023 02:28:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=93=9D=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=96=87=E4=BB=B6=E7=BC=BA=E5=A4=B1=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/pages.json | 2 +- src/store/menu/helpers.js | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 945bd40..70490d6 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,6 @@ "sass": "^1.63.4", "unocss": "^0.54.2", "unocss-applet": "^0.5.3", - "unplugin-uni-router": "^1.1.6", "vite": "4.1.4", "vite-plugin-eslint": "^1.8.1" } diff --git a/src/pages.json b/src/pages.json index 9c92793..8ac782e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -146,4 +146,4 @@ } ] } -} +} \ No newline at end of file diff --git a/src/store/menu/helpers.js b/src/store/menu/helpers.js index 15fc033..9455fae 100644 --- a/src/store/menu/helpers.js +++ b/src/store/menu/helpers.js @@ -2,7 +2,6 @@ import { groupBy } from 'lodash-es' import { list2Tree, tree2List } from '@/utils/treeSimple' import { sortTreeByField } from '@/utils/tree' import { getUserMenus } from '@/api/user/index' -import businessRoutes from '@/router/business.js' export async function getRemoteMenu(params) { let data = [] @@ -47,7 +46,7 @@ export function transformerMenu(data, 2: permissionList = [], } = groupBy(data, menuType) - const rawRoutes = businessRoutes?.children || [] + const rawRoutes = [] const mapRoutes = rawRoutes.reduce((obj, item) => { obj[item.path] = item return obj