diff --git a/src/views/services/serviceDirective/ConfigServiceDirective.data.ts b/src/views/services/serviceDirective/ConfigServiceDirective.data.ts index 8c2e23d..e8aec35 100644 --- a/src/views/services/serviceDirective/ConfigServiceDirective.data.ts +++ b/src/views/services/serviceDirective/ConfigServiceDirective.data.ts @@ -120,7 +120,7 @@ export const columns: BasicColumn[] = [ dataIndex: 'previewFile', customRender: ({ text }) => { // 如果 text 为空或 null/undefined,使用默认图片 - const imageUrl = text ? opeMediaAddress + text : import.meta.env.VITE_DEFAULT_DIRECTIVE_PRE_PIC; + const imageUrl = text ? opeMediaAddress + text : opeMediaAddress + import.meta.env.VITE_DEFAULT_DIRECTIVE_PRE_PIC; return render.renderImage({ text: imageUrl }); }, // customRender: render.renderImage, @@ -131,7 +131,7 @@ export const columns: BasicColumn[] = [ dataIndex: 'previewFileSmall', customRender: ({ text }) => { // 如果 text 为空或 null/undefined,使用默认图片 - const imageUrl = text ? opeMediaAddress + text : import.meta.env.VITE_DEFAULT_DIRECTIVE_PRESMALL_PIC; + const imageUrl = text ? opeMediaAddress + text : opeMediaAddress + import.meta.env.VITE_DEFAULT_DIRECTIVE_PRESMALL_PIC; return render.renderImage({ text: imageUrl }); }, // customRender: render.renderImage, @@ -160,7 +160,7 @@ export const columns: BasicColumn[] = [ dataIndex: 'immediateFile', customRender: ({ text }) => { // 如果 text 为空或 null/undefined,使用默认图片 - const imageUrl = text ? opeMediaAddress + text : import.meta.env.VITE_DEFAULT_DIRECTIVE_IM_PIC; + const imageUrl = text ? opeMediaAddress + text : opeMediaAddress + import.meta.env.VITE_DEFAULT_DIRECTIVE_IM_PIC; return render.renderImage({ text: imageUrl }); }, // customRender: render.renderImage, diff --git a/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue b/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue index 5584ee2..48acb4e 100644 --- a/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue +++ b/src/views/services/serviceDirective/components/ConfigServiceDirectiveForm.vue @@ -116,26 +116,26 @@ - -