Commit eeaaab24 authored by 刘殿昕's avatar 刘殿昕

菜单,导航栏

parent f0c1e172
......@@ -147,11 +147,19 @@ export default {
unreadMessageCount() {
return this.$store.state.unreadMessageCount;
},
getRouter() {
return this.$route.path;
}
},
watch: {
getMenuCartState(newVal) {
this.getList();
},
getRouter(val) {
if (val == "/services_shop" || val == "/technical_support" || val == "/workplace") {
this.now_menu = val;
}
}
},
methods: {
change_now_hover(n) {
......@@ -216,6 +224,7 @@ export default {
},
getMenuIndex() {
this.now_menu = this.$route.path;
console.log(this.now_menu)
},
getNowMenu() {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => {
......
......@@ -54,7 +54,7 @@ export default {
let arr = response.data.data[0].Child;
let shopArr = [];
arr.forEach((item) => {
if (item.visit_url == "/shop") {
if (item.visit_url == "/services_shop") {
shopArr = item.Child;
}
});
......
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