xbx #118
@ -185,12 +185,23 @@ 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){
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* 跳转路由与赋值对应的下标
|
||||
* @param index 选中的下标 方便赋值与跳转
|
||||
|
Loading…
Reference in New Issue
Block a user