|
|
@ -53,12 +53,13 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
'$route' () { |
|
|
|
'$route' () { |
|
|
|
const { siteId } = this.$route.query |
|
|
|
const { siteId, id } = this.$route.query |
|
|
|
// siteId有变化,则重新获取栏目,并更改store |
|
|
|
// siteId有变化,则重新获取栏目,并更改store |
|
|
|
if (siteId && (siteId != this.site || this.lastSite != this.site)) { |
|
|
|
if (siteId && (siteId != this.site || this.lastSite != this.site)) { |
|
|
|
this.getColumn() |
|
|
|
this.getColumn() |
|
|
|
this.setSite(siteId) |
|
|
|
this.setSite(siteId) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (id) this.active = id |
|
|
|
this.lastSite = siteId |
|
|
|
this.lastSite = siteId |
|
|
|
this.handleColor() |
|
|
|
this.handleColor() |
|
|
|
}, |
|
|
|
}, |
|
|
@ -150,7 +151,6 @@ export default { |
|
|
|
// 跳转 |
|
|
|
// 跳转 |
|
|
|
jump (id) { |
|
|
|
jump (id) { |
|
|
|
id = id || this.otherMenus[0].id |
|
|
|
id = id || this.otherMenus[0].id |
|
|
|
this.active = id |
|
|
|
|
|
|
|
this.getPath(this.otherMenus, id) |
|
|
|
this.getPath(this.otherMenus, id) |
|
|
|
this.getPath(this.menus, id) |
|
|
|
this.getPath(this.menus, id) |
|
|
|
this.columnTo(this.toItem) |
|
|
|
this.columnTo(this.toItem) |
|
|
|