From 9801b74d3ea68566789c0b97a15f9b14044f1dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E6=99=B6=E5=9C=9F=E8=B1=86?= <水晶土豆@devide> Date: Wed, 15 Nov 2023 19:21:00 +0800 Subject: [PATCH] Wed Nov 15 19:21:00 CST 2023 inscode --- src/storage/routeStorage.js | 2 +- src/util/toTree.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/routeStorage.js b/src/storage/routeStorage.js index d2354d9..ef09d42 100644 --- a/src/storage/routeStorage.js +++ b/src/storage/routeStorage.js @@ -10,7 +10,7 @@ export const useRouteStore = defineStore('route', { actions: { add(roleId){ if(roleId === '1'){ - routeArr.forEach(element => { + this.routeArr.forEach(element => { router.addRoute(element); router.addRoute('/',element); }); diff --git a/src/util/toTree.js b/src/util/toTree.js index 8e44326..c39d1c1 100644 --- a/src/util/toTree.js +++ b/src/util/toTree.js @@ -64,4 +64,4 @@ function FlatToTree(arr) { }) return { tree } } -// console.log(FlatToTree(flatData),'输出为树形结构') +// console.log(FlatToTree(flatData),'输出为树形结构') -- GitLab