mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
fix(editor): element-plus更新到2.6后表单项清除后是undefined,改回是空字符串
This commit is contained in:
parent
934398911d
commit
ceff0d4147
@ -535,11 +535,7 @@ class Editor extends BaseService {
|
||||
|
||||
newConfig = mergeWith(cloneDeep(node), newConfig, (objValue, srcValue, key) => {
|
||||
if (typeof srcValue === 'undefined' && Object.hasOwn(newConfig, key)) {
|
||||
if (typeof objValue === 'string') {
|
||||
return '';
|
||||
}
|
||||
|
||||
return null;
|
||||
return '';
|
||||
}
|
||||
|
||||
if (isObject(srcValue) && Array.isArray(objValue)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user