Преглед изворни кода

修改设置tags为全路径

lin-xin пре 7 година
родитељ
комит
32c184ecbe
1 измењених фајлова са 2 додато и 2 уклоњено
  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){