提交 d467f69c 编写于 作者: chengxiang.li's avatar chengxiang.li

update data-in jumpto data-view logic

上级 588f9fde
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
let href = window.location.href; let href = window.location.href;
let offset = href.indexOf("?"); let offset = href.indexOf("?");
// console.log(window.location.search); // console.log(window.location.search);
console.log(href); // console.log(href);
if (offset !== -1) { if (offset !== -1) {
let paramStr = href.substring(offset + 1, href.length); let paramStr = href.substring(offset + 1, href.length);
......
...@@ -224,7 +224,11 @@ export default { ...@@ -224,7 +224,11 @@ export default {
}, },
created() { created() {
vm = this; vm = this;
if(vm.$route.query.dingdingNumber){ // data-in 页面点击查看进来时,页面地址不变
// console.log('do nothing')
}else{
vm.$router.replace("/data-view"); vm.$router.replace("/data-view");
}
}, },
mounted() { mounted() {
vm.getUrlQuery(); vm.getUrlQuery();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册