mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
commit:修复数据兼容bug
This commit is contained in:
@@ -58,7 +58,17 @@ import { OnlinePageController } from '@/api/online';
|
||||
const props = defineProps<{ modelValue: FormPage }>();
|
||||
|
||||
const form = ref();
|
||||
const formPageData = ref<FormPage>({} as FormPage);
|
||||
const formPageData = ref<FormPage>({
|
||||
pageId: undefined,
|
||||
pageCode: undefined,
|
||||
pageName: undefined,
|
||||
published: false,
|
||||
pageType: SysOnlinePageType.BIZ,
|
||||
status: SysOnlinePageStatus.BASIC,
|
||||
extraJson: {
|
||||
extendClass: undefined,
|
||||
},
|
||||
});
|
||||
const dirty = ref(false);
|
||||
const formRules: Partial<Record<string, Arrayable<FormItemRule>>> = {
|
||||
pageCode: [
|
||||
@@ -133,6 +143,6 @@ defineExpose({
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
formPageData.value = { ...props.modelValue };
|
||||
formPageData.value = { ...formPageData.value, ...props.modelValue };
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user