Commit a6aa5357 by 刘泽奇

123

parent bdfd9b5b
......@@ -185,6 +185,19 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
this.logins.push({ "icon": "el-icon-arrow-right", "title": "退出", "type": "text", key: "exit", "isOnGrid": true });
}
},
watch: {
// 监听路由变化
$route: {
handler: function (val, oldVal) {
if (val.fullPath == "/jd/jdtrademark" && location.hostname == "tm.plus.jdcloud.com") {
this.selfHeaderShow = true;
this.selfFooterShow = true;
}
},
// 深度观察监听
deep: true
}
},
methods: {
// 返回当前接入渠道标识
getChannelPath() {
......@@ -213,10 +226,8 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
break;
default:
if (location.hostname != "tm.plus.jdcloud.com") {
this.selfHeaderShow = false;
this.selfFooterShow = false;
}
this.selfHeaderShow = false;
this.selfFooterShow = false;
break;
}
......
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