Browse Source

公司简介默认标题获取

master
aBin 3 years ago
parent
commit
f5a35a2881
  1. 3
      src/components/LeftNav/LeftNav.vue

3
src/components/LeftNav/LeftNav.vue

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

Loading…
Cancel
Save