Commit 1ae73bbc authored by wxk's avatar wxk

bugfix

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