xbx #118
@ -185,11 +185,22 @@ export default defineComponent({
|
||||
|
||||
const userinfo = computed(() => store.state.userinfo)
|
||||
// 设置当前路由
|
||||
for(const i in list){
|
||||
console.log(list[i].route==useRoute().path)
|
||||
if(list[i].route == useRoute().path){
|
||||
selnum.value = parseInt(i);
|
||||
const routelist = [
|
||||
["/mine/archives"],
|
||||
['/mine/webcast'],
|
||||
['/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