File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,11 @@ onMounted(async () => {
171171 const existingFilePath =
172172 typeof existingValue === ' string' && existingValue .trim () ? existingValue : null ;
173173
174- if (! uploaded .value && existingFilePath ) {
174+ if (! uploaded .value && props .record ?.[previewColumnName ]) {
175+ imgPreview .value = props .record [previewColumnName ];
176+ uploaded .value = true ;
177+ emit (' update:emptiness' , false );
178+ } else if (! uploaded .value && existingFilePath ) {
175179 const resp = await callAdminForthApi ({
176180 path: ` /plugin/${props .meta .pluginInstanceId }/get-file-download-url ` ,
177181 method: ' POST' ,
@@ -186,11 +190,6 @@ onMounted(async () => {
186190 }
187191 }
188192
189- if (! uploaded .value && props .record ?.[previewColumnName ]) {
190- imgPreview .value = props .record [previewColumnName ];
191- uploaded .value = true ;
192- emit (' update:emptiness' , false );
193- }
194193});
195194
196195const allowedExtensionsLabel = computed (() => {
You can’t perform that action at this time.
0 commit comments