|
@@ -35,7 +35,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 模块的子路由 -->
|
|
<!-- 模块的子路由 -->
|
|
|
- <div class="second_level" v-show="(routerObj.pathList || []).indexOf(routerPath) > -1">
|
|
|
|
|
|
|
+ <div class="second_level"
|
|
|
|
|
+ v-show="((routerObj.pathList || []).indexOf(routerPath) > -1)">
|
|
|
<div
|
|
<div
|
|
|
v-for="(list, index) in routerObj.list"
|
|
v-for="(list, index) in routerObj.list"
|
|
|
:key="index"
|
|
:key="index"
|
|
@@ -65,21 +66,24 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
isHover: [true, true, true, true, true],
|
|
isHover: [true, true, true, true, true],
|
|
|
- routerList: ROUTER
|
|
|
|
|
|
|
+ routerList: ROUTER,
|
|
|
|
|
+ firstRouter: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
routerPath: function () {
|
|
routerPath: function () {
|
|
|
- return this.$route.path;
|
|
|
|
|
|
|
+ return this.$route.matched[0].path;
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- // watch: {
|
|
|
|
|
- // routerPath: function(newpath, oldPath) {
|
|
|
|
|
- // console.log(newpath, 'new');
|
|
|
|
|
- // console.log(oldPath);
|
|
|
|
|
- // console.log()
|
|
|
|
|
- // }
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ watch: {
|
|
|
|
|
+ // routerPath: function(newpath, oldPath) {
|
|
|
|
|
+ // this.firstRouter =
|
|
|
|
|
+ // console.log(this.$route.matched[0].path)
|
|
|
|
|
+ // console.log(newpath, 'new');
|
|
|
|
|
+ // console.log(oldPath);
|
|
|
|
|
+ // console.log()
|
|
|
|
|
+ // }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
enterDiv: function (i) {
|
|
enterDiv: function (i) {
|
|
|
this.isHover.splice(i, 1, false);
|
|
this.isHover.splice(i, 1, false);
|