mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 10:36:31 +08:00
commit:bug修复
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
:model="formPageData"
|
||||
:rules="formRules"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-width="90px"
|
||||
@submit.prevent
|
||||
>
|
||||
<el-col :span="24">
|
||||
@@ -89,7 +89,7 @@ watch(
|
||||
() => props.modelValue,
|
||||
(newVal, oldVal) => {
|
||||
if (newVal != oldVal) {
|
||||
formPageData.value = { ...newVal };
|
||||
formPageData.value = { ...formPageData.value, ...newVal };
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -440,6 +440,9 @@ const initPageInfo = () => {
|
||||
published: false,
|
||||
pageType: SysOnlinePageType.BIZ,
|
||||
status: SysOnlinePageStatus.BASIC,
|
||||
extraJson: {
|
||||
extendClass: undefined,
|
||||
},
|
||||
};
|
||||
activeStep.value = SysOnlinePageSettingStep.BASIC;
|
||||
let pageId = props.pageId || thirdParams.value.pageId;
|
||||
@@ -718,8 +721,12 @@ onMounted(() => {
|
||||
return initPageInfo();
|
||||
})
|
||||
.then(res => {
|
||||
let extraJson = JSON.parse((res.data.extraJson as string) || '{}');
|
||||
formPageData.value = {
|
||||
...res.data,
|
||||
extraJson: {
|
||||
extendClass: extraJson.extendClass,
|
||||
},
|
||||
};
|
||||
})
|
||||
.catch(e => {
|
||||
|
||||
Reference in New Issue
Block a user