浏览代码

bug修复

chenrui 3 年之前
父节点
当前提交
a18e9ceeac
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/inventoryManagement/inventoryQuery/warehouseDetail.vue

+ 2 - 2
src/views/inventoryManagement/inventoryQuery/warehouseDetail.vue

@@ -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()
     }
   },