|
|
|
@ -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) |
|
|
|
|