diff --git a/src/components/common/table/baseTable.vue b/src/components/common/table/baseTable.vue index 6e9aab30..5edc137f 100644 --- a/src/components/common/table/baseTable.vue +++ b/src/components/common/table/baseTable.vue @@ -213,7 +213,7 @@ import HeadSearch from './headSearch.vue'; import { getFormConfigureApi } from '@/api/system/systemData'; import { formOptionsFormat } from './lib'; import { exportFile, fileUploadAllocationIconFun } from '@/utils/file'; -import { cloneDeep, isString } from 'lodash-es'; +import { cloneDeep, isString, isEqual } from 'lodash-es'; import { CommonStore } from '@/stores/common'; const commonStore = CommonStore(); @@ -346,8 +346,10 @@ watch( watch( () => props.params, - (val: any) => { - resetSearchFun(val); + (newVal: any, oldVal: any) => { + if (!isEqual(newVal, oldVal)) { + resetSearchFun(newVal); + } }, { deep: true } );