Commit fbc071a5736d74d5c5918a6121366bdac666dae1

Authored by RuoYi
1 parent 6cfff90b

关闭页签清理缓存数据

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