diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue
index a7bec39..9730fce 100644
--- a/src/layouts/navbar/index.vue
+++ b/src/layouts/navbar/index.vue
@@ -53,12 +53,13 @@ export default {
},
watch: {
'$route' () {
- const { siteId } = this.$route.query
+ const { siteId, id } = this.$route.query
// siteId有变化,则重新获取栏目,并更改store
if (siteId && (siteId != this.site || this.lastSite != this.site)) {
this.getColumn()
this.setSite(siteId)
}
+ if (id) this.active = id
this.lastSite = siteId
this.handleColor()
},
@@ -150,7 +151,6 @@ export default {
// 跳转
jump (id) {
id = id || this.otherMenus[0].id
- this.active = id
this.getPath(this.otherMenus, id)
this.getPath(this.menus, id)
this.columnTo(this.toItem)
diff --git a/src/mixins/page/index.js b/src/mixins/page/index.js
index 1dc0b9b..f2ade05 100644
--- a/src/mixins/page/index.js
+++ b/src/mixins/page/index.js
@@ -14,6 +14,15 @@ export default {
return this.$route.query.siteId || this.$store.state.content.site
}
},
+ watch: {
+ '$route.query' () {
+ const { id } = this.$route.query
+ if (id) {
+ this.id = id
+ this.getInfo()
+ }
+ }
+ },
mounted () {
this.getInfo && this.id && this.getColumnInfo()
},
diff --git a/src/pages/contactUs/index.vue b/src/pages/contactUs/index.vue
index c3a8104..9bbe6f9 100644
--- a/src/pages/contactUs/index.vue
+++ b/src/pages/contactUs/index.vue
@@ -18,8 +18,8 @@
-
-
+
+
电话
diff --git a/src/pages/devHistory/index.vue b/src/pages/devHistory/index.vue
index 811259c..adef34d 100644
--- a/src/pages/devHistory/index.vue
+++ b/src/pages/devHistory/index.vue
@@ -31,12 +31,6 @@ export default {
};
},
- watch: {
- '$route.query' () {
- this.id = this.$route.query.id
- this.getInfo()
- }
- },
mounted () {
new WOW().init();
},