소스 검색

修改设置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){