单选模式取值要改成字符串

pull/340/head
zhangdaiscott 2022-11-26 10:18:37 +08:00
parent 136e30360c
commit 104e975a13
1 changed files with 5 additions and 0 deletions

View File

@ -159,6 +159,11 @@
if (Array.isArray(state.value)) {
state.value = state.value.filter((item) => item != null && item !== '');
}
//update-begin---author:wangshuai ---date:20221123 for------------
if(mode !== 'multiple' && state.value && state.value.length>0){
state.value = state.value[0];
}
//update-end---author:wangshuai ---date:20221123 for--------------
// nextTick(() => formItemContext.onFieldChange());
}