|
|
@ -63,13 +63,12 @@ export default { |
|
|
|
childCode = item.children[0].code; |
|
|
|
} |
|
|
|
if (!url) { |
|
|
|
if (this.code && code !== this.code) { |
|
|
|
const path = window.location.href.split('?'); |
|
|
|
if (this.code && code !== this.code) { |
|
|
|
window.location.href = path[0] + `?code=${childCode}`; |
|
|
|
this.$emit('changeCode', code); |
|
|
|
this.childCode = code; |
|
|
|
} else if (code === this.code) { |
|
|
|
const path = window.location.href.split('?'); |
|
|
|
window.location.href = path[0] + `?code=${code}`; |
|
|
|
} |
|
|
|
} else { |
|
|
|