|
|
@ -58,7 +58,6 @@ export default { |
|
|
|
|
|
|
|
methods: { |
|
|
|
changeQuery(code, url, item) { |
|
|
|
console.log('code, url, item: ', code, url, item); |
|
|
|
let childCode = code; |
|
|
|
if (item && item.children && item.children.length) { |
|
|
|
childCode = item.children[0].code; |
|
|
@ -69,7 +68,8 @@ export default { |
|
|
|
this.$emit('chanegCode', code); |
|
|
|
this.childCode = code; |
|
|
|
} else if (code === this.code) { |
|
|
|
this.$emit('resetData'); |
|
|
|
const path = window.location.href.split('?') |
|
|
|
window.location.href= path[0]+`?code=${code}` |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (url === '/') { |
|
|
|