Procházet zdrojové kódy

参数设置路由样式

suxinf před 4 roky
rodič
revize
6150dcdde9
1 změnil soubory, kde provedl 2 přidání a 6 odebrání
  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>