Browse Source

【issues/6681】异步查询不生效

pull/6912/head
JEECG 4 months ago
parent
commit
1243fe1cad
  1. 5
      jeecgboot-vue3/src/components/Form/src/jeecg/components/JSearchSelect.vue

5
jeecgboot-vue3/src/components/Form/src/jeecg/components/JSearchSelect.vue

@ -49,6 +49,7 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '/@/utils/http/axios';
import { debounce } from 'lodash-es'; import { debounce } from 'lodash-es';
import { setPopContainer } from '/@/utils'; import { setPopContainer } from '/@/utils';
import { isObject } from '/@/utils/is';
export default defineComponent({ export default defineComponent({
name: 'JSearchSelect', name: 'JSearchSelect',
@ -353,7 +354,9 @@
//update-end-author:taoyan date:2022-8-15 for: VUEN-1971 online 1 //update-end-author:taoyan date:2022-8-15 for: VUEN-1971 online 1
// update-begin--author:liaozhiyang---date:20240523---forTV360X-26 // update-begin--author:liaozhiyang---date:20240523---forTV360X-26
const handleAsyncFocus = () => { const handleAsyncFocus = () => {
options.value.length && initDictCodeData(); // update-begin--author:liaozhiyang---date:20240709---forissues/6681
(isObject(selectedAsyncValue.value) || selectedAsyncValue.value?.length) && isDictTable.value && props.async && initDictTableData();
// update-end--author:liaozhiyang---date:20240709---forissues/6681
attrs.onFocus?.(); attrs.onFocus?.();
}; };
// update-end--author:liaozhiyang---date:20240523---forTV360X-26 // update-end--author:liaozhiyang---date:20240523---forTV360X-26

Loading…
Cancel
Save