|
@@ -245,14 +245,14 @@ export default {
|
|
|
},
|
|
|
mounted () {
|
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
|
- this.$refs.table.refresh(true)
|
|
|
+ this.resetSearchForm()
|
|
|
this.pageInit()
|
|
|
}
|
|
|
},
|
|
|
activated () {
|
|
|
// 如果是新页签打开或者进入新的子页(例:存在列表第2条数据编辑页页签时再打开第4条数据的编辑页),则重置当前页面
|
|
|
if (this.$store.state.app.isNewTab || !this.$store.state.app.isNewSubTab) {
|
|
|
- this.$refs.table.refresh(true)
|
|
|
+ this.resetSearchForm()
|
|
|
this.pageInit()
|
|
|
}
|
|
|
},
|