소스 검색

参数设置路由样式

suxinf 4 년 전
부모
커밋
6150dcdde9
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 6
      src/views/parameter/ParameterIndex.vue

+ 2 - 6
src/views/parameter/ParameterIndex.vue

@@ -34,13 +34,9 @@ export default {
   },
   computed: {
     childRouter: function () {
-      return this.$route.path;
-    },
-  },
-  methods: {
+      return this.$route.matched[1]&&this.$route.matched[1].path;
+    }
   },
-  mounted() {},
-  created() {},
 };
 </script>