Commit 7ac39e9c by liimin

1

1 parent 01557420
...@@ -18,8 +18,7 @@ export default { ...@@ -18,8 +18,7 @@ export default {
data() { data() {
return { return {
activeName: '', activeName: '',
nav4: [], nav4: []
id: ''
} }
}, },
watch: { watch: {
...@@ -45,7 +44,6 @@ export default { ...@@ -45,7 +44,6 @@ export default {
if (nav4.length) { if (nav4.length) {
const sub = nav4.find(({ id }) => id == activeId) const sub = nav4.find(({ id }) => id == activeId)
if (sub) { if (sub) {
if (this.activeName == sub.path) return
this.$nextTick(() => { this.$nextTick(() => {
console.log(sub.path) console.log(sub.path)
this.$router.push(sub.path) this.$router.push(sub.path)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!