tongshangming 1 rok pred
rodič
commit
30e7bb4662
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      src/components/ProTable.vue

+ 1 - 0
src/components/ProTable.vue

@@ -45,6 +45,7 @@ const searchList = ref<any>([])
 watch(
   () => props.formConfig.formItems,
   val => {
+    searchList.value = []
     val.forEach((item: any) => {
       if (item.group) {
         searchList.value = searchList.value.concat(item.group.filter((item: any) => item.search))