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; childCode = item.children[0].code;
} }
if (!url) { if (!url) {
const path = window.location.href.split('?');
if (this.code && code !== this.code) { if (this.code && code !== this.code) {
const path = window.location.href.split('?');
window.location.href = path[0] + `?code=${childCode}`; window.location.href = path[0] + `?code=${childCode}`;
this.$emit('changeCode', code); this.$emit('changeCode', code);
this.childCode = code; this.childCode = code;
} else if (code === this.code) { } else if (code === this.code) {
const path = window.location.href.split('?');
window.location.href = path[0] + `?code=${code}`; window.location.href = path[0] + `?code=${code}`;
} }
} else { } else {

Loading…
Cancel
Save