xbx #118

Merged
theluyuan merged 10 commits from xbx into master 2020-11-06 23:45:06 +08:00
Showing only changes of commit 45180ae026 - Show all commits

View File

@ -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);
}
} }
} }
/** /**
* 跳转路由与赋值对应的下标 * 跳转路由与赋值对应的下标