所有tabs切换路径时页面都设置为可缓存

1、所有tabs切换路径时页面都设置为可缓存
2、优化存在缓存时列表请求两次接口的问题
3、form表单点击返回时还原表单数据,清除缓存状态
This commit is contained in:
康冉冉
2026-03-11 17:43:46 +08:00
parent be00acb4ea
commit ad1df9cfa5
29 changed files with 416 additions and 295 deletions
+3
View File
@@ -441,6 +441,9 @@
// 返回
handleReset() {
this.$refs.ruleForm.resetFields();
// 步骤1:从 keep-alive 缓存列表中移除当前页面
this.$store.dispatch('tagsView/delCachedView', this.$route);
// 清除所有表单校验提示
this.$emit("fnClick", {fnCode: 'cancel'});
},
// change事件