作者 RuoYi

关闭页签清理缓存数据

@@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
18 18
19 <script> 19 <script>
20 import { updateUserPwd } from "@/api/system/user"; 20 import { updateUserPwd } from "@/api/system/user";
  21 +import Global from "@/layout/components/global.js";
21 22
22 export default { 23 export default {
23 data() { 24 data() {
@@ -64,6 +65,7 @@ export default { @@ -64,6 +65,7 @@ export default {
64 }); 65 });
65 }, 66 },
66 close() { 67 close() {
  68 + Global.$emit("removeCache", "closeSelectedTag", this.$route);
67 this.$store.dispatch("tagsView/delView", this.$route); 69 this.$store.dispatch("tagsView/delView", this.$route);
68 this.$router.push({ path: "/index" }); 70 this.$router.push({ path: "/index" });
69 } 71 }
@@ -24,6 +24,7 @@ @@ -24,6 +24,7 @@
24 24
25 <script> 25 <script>
26 import { updateUserProfile } from "@/api/system/user"; 26 import { updateUserProfile } from "@/api/system/user";
  27 +import Global from "@/layout/components/global.js";
27 28
28 export default { 29 export default {
29 props: { 30 props: {
@@ -68,6 +69,7 @@ export default { @@ -68,6 +69,7 @@ export default {
68 }); 69 });
69 }, 70 },
70 close() { 71 close() {
  72 + Global.$emit("removeCache", "closeSelectedTag", this.$route);
71 this.$store.dispatch("tagsView/delView", this.$route); 73 this.$store.dispatch("tagsView/delView", this.$route);
72 this.$router.push({ path: "/index" }); 74 this.$router.push({ path: "/index" });
73 } 75 }
@@ -127,6 +127,7 @@ @@ -127,6 +127,7 @@
127 import { getGenTable, updateGenTable } from "@/api/tool/gen"; 127 import { getGenTable, updateGenTable } from "@/api/tool/gen";
128 import { optionselect as getDictOptionselect } from "@/api/system/dict/type"; 128 import { optionselect as getDictOptionselect } from "@/api/system/dict/type";
129 import { listMenu as getMenuTreeselect } from "@/api/system/menu"; 129 import { listMenu as getMenuTreeselect } from "@/api/system/menu";
  130 +import Global from "@/layout/components/global.js";
130 import basicInfoForm from "./basicInfoForm"; 131 import basicInfoForm from "./basicInfoForm";
131 import genInfoForm from "./genInfoForm"; 132 import genInfoForm from "./genInfoForm";
132 import Sortable from 'sortablejs' 133 import Sortable from 'sortablejs'
@@ -207,6 +208,7 @@ export default { @@ -207,6 +208,7 @@ export default {
207 }, 208 },
208 /** 关闭按钮 */ 209 /** 关闭按钮 */
209 close() { 210 close() {
  211 + Global.$emit("removeCache", "closeSelectedTag", this.$route);
210 this.$store.dispatch("tagsView/delView", this.$route); 212 this.$store.dispatch("tagsView/delView", this.$route);
211 this.$router.push({ path: "/tool/gen", query: { t: Date.now()}}) 213 this.$router.push({ path: "/tool/gen", query: { t: Date.now()}})
212 } 214 }