We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3218f21 commit 64c2ecbCopy full SHA for 64c2ecb
frontend/src/views/system/embedded/Page.vue
@@ -233,11 +233,11 @@ const saveHandler = () => {
233
const editHandler = (row: any) => {
234
pageForm.value.id = null
235
if (row) {
236
- for (const key in defaultForm) {
237
- if (Object.prototype.hasOwnProperty.call(defaultForm, key)) {
238
- pageForm.value[key] = row[key]
239
- }
240
+ const { id, name, domain, type } = row
+ pageForm.value.id = id
+ pageForm.value.name = name
+ pageForm.value.domain = domain
+ pageForm.value.type = type
241
}
242
dialogTitle.value = row?.id ? t('embedded.edit_app') : t('embedded.create_application')
243
dialogFormVisible.value = true
0 commit comments