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

关闭页签清理缓存数据

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

+ 2 - 0
ruoyi-ui/src/views/system/user/profile/resetPwd.vue

@@ -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
       });
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
     }

+ 2 - 0
ruoyi-ui/src/views/system/user/profile/userInfo.vue

@@ -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
       });
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
     }

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

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