Bläddra i källkod

修改设置tags为全路径

lin-xin 7 år sedan
förälder
incheckning
32c184ecbe
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/components/common/Tags.vue

+ 2 - 2
src/components/common/Tags.vue

@@ -58,11 +58,11 @@
             // 设置标签
             setTags(route){
                 const isExist = this.tagsList.some(item => {
-                    return item.path === route.path;
+                    return item.path === route.fullpath;
                 })
                 !isExist && this.tagsList.push({
                     title: route.meta.title,
-                    path: route.path
+                    path: route.fullpath
                 })
             },
             handleTags(command){