北风
2020-05-22 98bb78a9d62acc612c34bb830a9ac7e5a1afffde
调整空格同步格式
已修改2个文件
18 ■■■■ 文件已修改
ruoyi-ui/src/layout/components/Sidebar/index.vue 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/layout/components/TagsView/index.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/layout/components/Sidebar/index.vue
ruoyi-ui/src/layout/components/TagsView/index.vue
@@ -100,7 +100,10 @@
          });
        }
        if (route.children) {
          const tempTags = this.filterAffixTags(route.children, route.path);
                    const tempTags = this.filterAffixTags(
                        route.children,
                        route.path
                    );
          if (tempTags.length >= 1) {
            tags = [...tags, ...tempTags];
          }
@@ -109,7 +112,9 @@
      return tags;
    },
    initTags() {
      const affixTags = (this.affixTags = this.filterAffixTags(this.routes));
            const affixTags = (this.affixTags = this.filterAffixTags(
                this.routes
            ));
      for (const tag of affixTags) {
        // Must have tag name
        if (tag.name) {
@@ -132,7 +137,10 @@
            this.$refs.scrollPane.moveToTarget(tag);
            // when query is different then update
            if (tag.to.fullPath !== this.$route.fullPath) {
              this.$store.dispatch("tagsView/updateVisitedView", this.$route);
                            this.$store.dispatch(
                                "tagsView/updateVisitedView",
                                this.$route
                            );
            }
            break;
          }
@@ -167,7 +175,9 @@
        });
    },
    closeAllTags(view) {
      this.$store.dispatch("tagsView/delAllViews").then(({ visitedViews }) => {
            this.$store
                .dispatch("tagsView/delAllViews")
                .then(({ visitedViews }) => {
        if (this.affixTags.some(tag => tag.path === view.path)) {
          return;
        }