Commit 86694d472405c9c2db45a1f7ade859fa54c47233
1 parent
b6402422
fix: 修复数据流转rest-api选择凭据类型,输入用户名和密码点击保存,再点进去数据未保存
Showing
1 changed file
with
5 additions
and
1 deletions
... | ... | @@ -83,7 +83,11 @@ |
83 | 83 | if (credentials) { |
84 | 84 | for (let i in credentials) Reflect.set(credentialsFile, i, credentials[i]); |
85 | 85 | } |
86 | - setFieldsValue(value); | |
86 | + setFieldsValue({ | |
87 | + ...value, | |
88 | + username: value?.credentials.username, | |
89 | + password: value?.credentials.password, | |
90 | + }); | |
87 | 91 | setFieldsValue({ |
88 | 92 | type: credentials.type, |
89 | 93 | }); | ... | ... |