Kaynağa Gözat

参数设置路由样式

suxinf 4 yıl önce
ebeveyn
işleme
6150dcdde9
1 değiştirilmiş dosya ile 2 ekleme ve 6 silme
  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>