mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	关闭页签清理缓存数据
This commit is contained in:
		@@ -18,6 +18,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
import { updateUserPwd } from "@/api/system/user";
 | 
					import { updateUserPwd } from "@/api/system/user";
 | 
				
			||||||
 | 
					import Global from "@/layout/components/global.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
  data() {
 | 
					  data() {
 | 
				
			||||||
@@ -64,6 +65,7 @@ export default {
 | 
				
			|||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    close() {
 | 
					    close() {
 | 
				
			||||||
 | 
					      Global.$emit("removeCache", "closeSelectedTag", this.$route);
 | 
				
			||||||
      this.$store.dispatch("tagsView/delView", this.$route);
 | 
					      this.$store.dispatch("tagsView/delView", this.$route);
 | 
				
			||||||
      this.$router.push({ path: "/index" });
 | 
					      this.$router.push({ path: "/index" });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,6 +24,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
import { updateUserProfile } from "@/api/system/user";
 | 
					import { updateUserProfile } from "@/api/system/user";
 | 
				
			||||||
 | 
					import Global from "@/layout/components/global.js";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default {
 | 
					export default {
 | 
				
			||||||
  props: {
 | 
					  props: {
 | 
				
			||||||
@@ -68,6 +69,7 @@ export default {
 | 
				
			|||||||
      });
 | 
					      });
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    close() {
 | 
					    close() {
 | 
				
			||||||
 | 
					      Global.$emit("removeCache", "closeSelectedTag", this.$route);
 | 
				
			||||||
      this.$store.dispatch("tagsView/delView", this.$route);
 | 
					      this.$store.dispatch("tagsView/delView", this.$route);
 | 
				
			||||||
      this.$router.push({ path: "/index" });
 | 
					      this.$router.push({ path: "/index" });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -127,6 +127,7 @@
 | 
				
			|||||||
import { getGenTable, updateGenTable } from "@/api/tool/gen";
 | 
					import { getGenTable, updateGenTable } from "@/api/tool/gen";
 | 
				
			||||||
import { optionselect as getDictOptionselect } from "@/api/system/dict/type";
 | 
					import { optionselect as getDictOptionselect } from "@/api/system/dict/type";
 | 
				
			||||||
import { listMenu as getMenuTreeselect } from "@/api/system/menu";
 | 
					import { listMenu as getMenuTreeselect } from "@/api/system/menu";
 | 
				
			||||||
 | 
					import Global from "@/layout/components/global.js";
 | 
				
			||||||
import basicInfoForm from "./basicInfoForm";
 | 
					import basicInfoForm from "./basicInfoForm";
 | 
				
			||||||
import genInfoForm from "./genInfoForm";
 | 
					import genInfoForm from "./genInfoForm";
 | 
				
			||||||
import Sortable from 'sortablejs'
 | 
					import Sortable from 'sortablejs'
 | 
				
			||||||
@@ -207,6 +208,7 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    /** 关闭按钮 */
 | 
					    /** 关闭按钮 */
 | 
				
			||||||
    close() {
 | 
					    close() {
 | 
				
			||||||
 | 
					      Global.$emit("removeCache", "closeSelectedTag", this.$route);
 | 
				
			||||||
      this.$store.dispatch("tagsView/delView", this.$route);
 | 
					      this.$store.dispatch("tagsView/delView", this.$route);
 | 
				
			||||||
      this.$router.push({ path: "/tool/gen", query: { t: Date.now()}})
 | 
					      this.$router.push({ path: "/tool/gen", query: { t: Date.now()}})
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user