Closed testnet0 closed 2 months ago
应该是当第一次打开下拉框的时候,没有拼接keyword和pageSize参数
什么接口,这种问题应该是后台接口问题吧
什么接口,这种问题应该是后台接口问题吧
接口是:/jeecgboot/sys/dict/getDictItems 前端代码:
升级前还是可以的,只有在首次加载的时候会没有分页
第一次打开下拉框的时候,没带分页参数:
你分页参数在哪配置的
你分页参数在哪配置的
找到原因了 jeecgboot-vue3/src/components/Form/src/jeecg/components/JSearchSelect.vue 这里的代码有问题,没考虑字典表的情况: options.value.length && initDictCodeData();
修改成了:
options.value.length && isDictTable.value ? initDictTableData() : initDictCodeData(); 就不会第一次的时候加载全部数据了
我们看看
已修复,下一版本发布。
你本地可按如下进行修复: import { isObject } from '/@/utils/is';
const handleAsyncFocus = () => { (isObject(selectedAsyncValue.value) || selectedAsyncValue.value?.length) && isDictTable.value && props.async && initDictTableData(); attrs.onFocus?.(); };
版本号:
V3.7.0
问题描述:
JSearchSelect的async异步加载参数现在不生效,即使配置了首次打开下拉框,发起请求获得的也是全部数据:
错误截图:
友情提示: