Просмотр исходного кода

关闭页签清理缓存数据

RuoYi лет назад: 5
Родитель
Сommit
1066713524

+ 2 - 0
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
     }

+ 2 - 0
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
     }

+ 3 - 1
ruoyi-ui/src/views/tool/gen/editTable.vue

@@ -90,7 +90,7 @@
90 90
                 <el-option label="单选框" value="radio" />
91 91
                 <el-option label="复选框" value="checkbox" />
92 92
                 <el-option label="日期控件" value="datetime" />
93
-				<el-option label="上传控件" value="uploadImage" />
93
+                <el-option label="上传控件" value="uploadImage" />
94 94
                 <el-option label="富文本控件" value="editor" />
95 95
               </el-select>
96 96
             </template>
@@ -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
     }