Skip to content

Commit 44b1877

Browse files
fix(demo): 修复form demo的远程搜索不会触发的bug (#3770)
1 parent c58c192 commit 44b1877

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/views/demo/form/index.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
labelField="name"
4949
valueField="id"
5050
:params="searchParams"
51-
@search="useDebounceFn(onSearch, 300)"
51+
@search="debounceOptionsFn"
5252
/>
5353
</template>
5454
</BasicForm>
@@ -71,6 +71,7 @@
7171
import { areaRecord } from '@/api/demo/cascader';
7272
import { uploadApi } from '@/api/sys/upload';
7373
74+
let debounceOptionsFn = useDebounceFn(onSearch, 300)
7475
const valueSelectA = ref<string[]>([]);
7576
const valueSelectB = ref<string[]>([]);
7677
const options = ref<Required<SelectProps>['options']>([]);
@@ -411,7 +412,7 @@
411412
params: {
412413
id: 1,
413414
},
414-
415+
415416
resultField: 'list',
416417
// use name as label
417418
labelField: 'name',

0 commit comments

Comments
 (0)