xbx #118
@ -185,11 +185,22 @@ export default defineComponent({
|
|||||||
|
|
||||||
const userinfo = computed(() => store.state.userinfo)
|
const userinfo = computed(() => store.state.userinfo)
|
||||||
// 设置当前路由
|
// 设置当前路由
|
||||||
for(const i in list){
|
const routelist = [
|
||||||
console.log(list[i].route==useRoute().path)
|
["/mine/archives"],
|
||||||
if(list[i].route == useRoute().path){
|
['/mine/webcast'],
|
||||||
selnum.value = parseInt(i);
|
['/mine/video'],
|
||||||
|
['/mine/wallet', '/mine/cashout', '/mine/addaccount', '/mine/transaction', '/mine/transactionxq'],
|
||||||
|
['/mine/liststatistic'],
|
||||||
|
['/mine/aboutus']
|
||||||
|
]
|
||||||
|
for(const i in routelist){
|
||||||
|
for(const j in routelist[i]){
|
||||||
|
console.log(routelist[i][j]==useRoute().path)
|
||||||
|
if(routelist[i][j] == useRoute().path){
|
||||||
|
selnum.value = parseInt(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 跳转路由与赋值对应的下标
|
* 跳转路由与赋值对应的下标
|
||||||
|
Loading…
Reference in New Issue
Block a user