作者 北风

调整空格同步格式

@@ -100,7 +100,10 @@ export default { @@ -100,7 +100,10 @@ export default {
100 }); 100 });
101 } 101 }
102 if (route.children) { 102 if (route.children) {
103 - const tempTags = this.filterAffixTags(route.children, route.path); 103 + const tempTags = this.filterAffixTags(
  104 + route.children,
  105 + route.path
  106 + );
104 if (tempTags.length >= 1) { 107 if (tempTags.length >= 1) {
105 tags = [...tags, ...tempTags]; 108 tags = [...tags, ...tempTags];
106 } 109 }
@@ -109,7 +112,9 @@ export default { @@ -109,7 +112,9 @@ export default {
109 return tags; 112 return tags;
110 }, 113 },
111 initTags() { 114 initTags() {
112 - const affixTags = (this.affixTags = this.filterAffixTags(this.routes)); 115 + const affixTags = (this.affixTags = this.filterAffixTags(
  116 + this.routes
  117 + ));
113 for (const tag of affixTags) { 118 for (const tag of affixTags) {
114 // Must have tag name 119 // Must have tag name
115 if (tag.name) { 120 if (tag.name) {
@@ -132,7 +137,10 @@ export default { @@ -132,7 +137,10 @@ export default {
132 this.$refs.scrollPane.moveToTarget(tag); 137 this.$refs.scrollPane.moveToTarget(tag);
133 // when query is different then update 138 // when query is different then update
134 if (tag.to.fullPath !== this.$route.fullPath) { 139 if (tag.to.fullPath !== this.$route.fullPath) {
135 - this.$store.dispatch("tagsView/updateVisitedView", this.$route); 140 + this.$store.dispatch(
  141 + "tagsView/updateVisitedView",
  142 + this.$route
  143 + );
136 } 144 }
137 break; 145 break;
138 } 146 }
@@ -167,7 +175,9 @@ export default { @@ -167,7 +175,9 @@ export default {
167 }); 175 });
168 }, 176 },
169 closeAllTags(view) { 177 closeAllTags(view) {
170 - this.$store.dispatch("tagsView/delAllViews").then(({ visitedViews }) => { 178 + this.$store
  179 + .dispatch("tagsView/delAllViews")
  180 + .then(({ visitedViews }) => {
171 if (this.affixTags.some(tag => tag.path === view.path)) { 181 if (this.affixTags.some(tag => tag.path === view.path)) {
172 return; 182 return;
173 } 183 }