Commit ddc35ed4 by yanju

修复nav card

parent 94fabc96
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
if (this.$route.query.type) { if (this.$route.query.type) {
this.isBlue = this.$route.query.type===this.labelId; this.isBlue = this.$route.query.type===this.labelId;
} else { } else {
this.isBlue = this.$route.path.indexOf(this.navAddress) !== -1 &&(this.$route.path.indexOf('personal-center') !== -1||this.$route.path.indexOf('search') !== -1); this.isBlue = this.$route.path.indexOf(this.navAddress) !== -1 &&(this.$route.path.indexOf('personal-center') !== -1||this.$route.path.indexOf('search') !== -1||this.$route.path.indexOf('/web/') !== -1);
} }
}, },
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
this.isBlue = this.$route.query.type===this.labelId; this.isBlue = this.$route.query.type===this.labelId;
} else { } else {
this.isBlue = this.$route.path.indexOf(this.navAddress) !== -1 &&(this.$route.path.indexOf('personal-center') !== -1||this.$route.path.indexOf('search') !== -1); this.isBlue = this.$route.path.indexOf(this.navAddress) !== -1 &&(this.$route.path.indexOf('personal-center') !== -1||this.$route.path.indexOf('search') !== -1||this.$route.path.indexOf('/web/') !== -1);
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment