fix: 用户选择器不存在选项回显&缺陷抽屉内删除自动切换下一条

This commit is contained in:
baiqi 2024-07-24 18:14:37 +08:00 committed by 刘瑞斌
parent c562fe6527
commit 102dc1d8d6
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
:remote-extra-params="{ ...props.loadOptionParams, type: props.type }"
:option-label-render="optionLabelRender"
:fallback-option="(val) => ({
label: (val as Record<string, any>).name,
label: `${(val as Record<string, any>).name}${(val as Record<string, any>).email}`,
value: val,
})"
:object-value="true"

View File

@ -514,7 +514,7 @@
if (!props.pagination && !props.tableData) {
showDrawerVisible.value = false;
} else {
detailDrawerRef.value?.openPrevDetail();
detailDrawerRef.value?.openNextDetail();
}
} catch (error) {
// eslint-disable-next-line no-console