提交 9801b74d 编写于 作者: 水晶土豆

Wed Nov 15 19:21:00 CST 2023 inscode

上级 03ac1668
......@@ -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);
});
......
......@@ -64,4 +64,4 @@ function FlatToTree(arr) {
})
return { tree }
}
// console.log(FlatToTree(flatData),'输出为树形结构')
// console.log(FlatToTree(flatData),'输出为树形结构')
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册