This commit is contained in:
Jerry
2024-07-24 23:17:23 +08:00
parent bb01172492
commit 05e6f207c8

View File

@@ -79,24 +79,24 @@ const isOnlineForm = computed(() => {
}); });
const isDraft = computed(() => { const isDraft = computed(() => {
return typeof dialogParams.isDraft === 'string' return typeof dialogParams.value.isDraft === 'string'
? dialogParams.isDraft === 'true' ? dialogParams.value.isDraft === 'true'
: dialogParams.isDraft; : dialogParams.value.isDraft;
}); });
const isPreview = computed(() => { const isPreview = computed(() => {
return typeof dialogParams.isPreview === 'string' return typeof dialogParams.value.isPreview === 'string'
? dialogParams.isPreview === 'true' ? dialogParams.value.isPreview === 'true'
: dialogParams.isPreview; : dialogParams.value.isPreview;
}); });
const isRuntime = computed(() => { const isRuntime = computed(() => {
return typeof dialogParams.isRuntime === 'string' return typeof dialogParams.value.isRuntime === 'string'
? dialogParams.isRuntime === 'true' ? dialogParams.value.isRuntime === 'true'
: dialogParams.isRuntime; : dialogParams.value.isRuntime;
}); });
const readOnly = computed(() => { const readOnly = computed(() => {
return typeof dialogParams.readOnly === 'string' return typeof dialogParams.value.readOnly === 'string'
? dialogParams.readOnly === 'true' ? dialogParams.value.readOnly === 'true'
: dialogParams.readOnly; : dialogParams.value.readOnly;
}); });
const getFlowInfo = computed(() => { const getFlowInfo = computed(() => {