File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
frontend/src/components/layout Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ explicit = true
7474
7575[[tool .uv .index ]]
7676name = " default"
77- url = " https://mirrors.tuna.tsinghua .edu.cn/pypi/web/simple"
77+ url = " https://mirrors.hust .edu.cn/pypi/web/simple"
7878default = true
7979
8080[[tool .uv .index ]]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { ElMenu } from 'element-plus-secondary'
44import { useRoute , useRouter } from ' vue-router'
55import MenuItem from ' ./MenuItem.vue'
66import { useUserStore } from ' @/stores/user'
7- import { routes } from ' @/router'
7+ // import { routes } from '@/router'
88const userStore = useUserStore ()
99const router = useRouter ()
1010defineProps ({
@@ -39,7 +39,9 @@ const formatRoute = (arr: any, parentPath = '') => {
3939
4040const routerList = computed (() => {
4141 if (showSysmenu .value ) {
42- const [sysRouter] = formatRoute (routes .filter ((route ) => route .path .includes (' /system' )))
42+ const [sysRouter] = formatRoute (
43+ router .getRoutes ().filter ((route : any ) => route ?.name === ' system' )
44+ )
4345 return sysRouter .children
4446 }
4547 const list = router .getRoutes ().filter ((route ) => {
You can’t perform that action at this time.
0 commit comments