瀏覽代碼

参数设置路由样式

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>