Commit 4feaa760 authored by 杨子龙's avatar 杨子龙

修复地址同步组件同步问题

parent a3947cd4
......@@ -23,11 +23,13 @@ const AddressSync = (props) => {
const selectChange = (value) => {
let val = "";
if (isArray(value)) {
val = value.join(',')
} else {
val = value
}
onChange(val)
}
......@@ -36,7 +38,7 @@ const AddressSync = (props) => {
allowClear
style={{ width: '100%' }}
options={options}
value={value}
value={otherProps.mode === "multiple" ? value ? value?.split(',') : [] : value}
onFocus={onFocus}
onChange={selectChange}
{...otherProps}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment