所有tabs切换路径时页面都设置为可缓存
1、所有tabs切换路径时页面都设置为可缓存 2、优化存在缓存时列表请求两次接口的问题 3、form表单点击返回时还原表单数据,清除缓存状态
This commit is contained in:
@@ -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事件
|
||||
|
||||
Reference in New Issue
Block a user