Commit 1ae73bbc authored by wxk's avatar wxk

bugfix

parent eecb508a
......@@ -38,8 +38,9 @@
},
methods: {
navClick(index) {
Bus.$emit('refresh');
if(this.active != 'account'){
this.$router.push(`/monitor/${index}`)
this.$router.push(`/monitor/${index}`);
}else{
this.$router.push('/monitor/account');
}
......@@ -47,7 +48,6 @@
},
watch: {
$route() {
Bus.$emit('refresh');
this.active = this.$route.params.name || 'account';
}
}
......
......@@ -51,6 +51,10 @@ export default new Router({
]
}
]
},
{
path: '*',
redirect:'/monitor/account',
}
]
})
<template>
<div class="box">
<keep-alive>
<router-view :platInfo="platInfo"></router-view>
</keep-alive>
<router-view :platInfo="platInfo"></router-view>
</div>
</template>
......
......@@ -540,7 +540,7 @@
},
//返回上一页(关闭详情)
closeDetails() {
Bus.$emit('back');
// Bus.$emit('back');
this.$router.go(-1);
},
//查询行情信息
......@@ -864,10 +864,10 @@
}
},
watch: {
$route() {
/*$route() {
this.robotDetailInfo = JSON.parse(sessionStorage.getItem('robotDetailInfo'));
this.init();
},
},*/
robotDetailInfo() {
this.init();
},
......
......@@ -178,7 +178,7 @@
this.init();
},0)
});
Bus.$on('back', ()=>{
/*Bus.$on('back', ()=>{
let Params = {
class: "robot", //账户级别
coin: [], //目标币种,用于首页里的筛选和币种监控 可选参数
......@@ -198,7 +198,7 @@
Params.platform = this.checkedWebs;
}
this.getRobotList(Params);
})
})*/
},
methods: {
init() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment