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,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 选中的下标 方便赋值与跳转