File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ async function handleKeepAlive(to) {
36
36
37
37
router . beforeEach ( async ( to , from , next ) => {
38
38
const userStore = useUserStore ( )
39
+ to . meta . matched = JSON . parse ( JSON . stringify ( to . matched ) )
39
40
handleKeepAlive ( to )
40
41
const token = userStore . token
41
42
// 在白名单中的判断情况
Original file line number Diff line number Diff line change 31
31
</el-col >
32
32
<el-col :xs =" 10" :lg =" 14" :md =" 14" :sm =" 9" :xl =" 14" :pull =" 1" >
33
33
<el-breadcrumb class =" breadcrumb" >
34
+
34
35
<el-breadcrumb-item
35
36
v-for =" item in matched.slice(1,matched.length)"
36
37
:key =" item.path"
@@ -119,7 +120,6 @@ import { useRouterStore } from '@/pinia/modules/router'
119
120
const router = useRouter ()
120
121
const route = useRoute ()
121
122
const routerStore = useRouterStore ()
122
- console .log (routerStore .keepAliveRouters )
123
123
// 三种窗口适配
124
124
const isCollapse = ref (false )
125
125
const isSider = ref (true )
@@ -186,7 +186,7 @@ const backgroundColor = computed(() => {
186
186
}
187
187
})
188
188
189
- const matched = computed (() => route .matched )
189
+ const matched = computed (() => route .meta . matched )
190
190
191
191
const changeUserAuth = async (id) => {
192
192
const res = await setUserAuthority ({
You can’t perform that action at this time.
0 commit comments