Skip to content

Commit defc813

Browse files
committed
fix(Embedded Management): Page embed editing function is invalid
1 parent 64c2ecb commit defc813

File tree

1 file changed

+7
-4
lines changed
  • frontend/src/views/system/embedded

1 file changed

+7
-4
lines changed

frontend/src/views/system/embedded/Page.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ const defaultForm = {
6363
name: null,
6464
domain: null,
6565
type: 4,
66-
// configuration: null,
67-
// description: null,
66+
configuration: null,
67+
description: null,
6868
}
6969
const pageForm = ref<Form>(cloneDeep(defaultForm))
7070
@@ -218,7 +218,8 @@ const saveHandler = () => {
218218
if (obj.id === '') {
219219
delete obj.id
220220
}
221-
embeddedApi.addEmbedded(obj).then(() => {
221+
const req = obj.id ? embeddedApi.updateEmbedded : embeddedApi.addEmbedded
222+
req(obj).then(() => {
222223
ElMessage({
223224
type: 'success',
224225
message: t('common.save_success'),
@@ -233,11 +234,13 @@ const saveHandler = () => {
233234
const editHandler = (row: any) => {
234235
pageForm.value.id = null
235236
if (row) {
236-
const { id, name, domain, type } = row
237+
const { id, name, domain, type, configuration, description } = row
237238
pageForm.value.id = id
238239
pageForm.value.name = name
239240
pageForm.value.domain = domain
240241
pageForm.value.type = type
242+
pageForm.value.configuration = configuration
243+
pageForm.value.description = description
241244
}
242245
dialogTitle.value = row?.id ? t('embedded.edit_app') : t('embedded.create_application')
243246
dialogFormVisible.value = true

0 commit comments

Comments
 (0)