File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ const uploadedSize = ref(0);
107107const downloadFileUrl = ref (' ' );
108108
109109watch (uploaded , (value ) => {
110+ console .log (' Uploaded changed:' , value );
110111 emit (' update:emptiness' , ! value );
111112});
112113
@@ -185,10 +186,10 @@ onMounted(async () => {
185186 }
186187 imgPreview .value = resp .url ;
187188 } else {
188- imgPreview .value = props .record [previewColumnName ];
189+ imgPreview .value = props .record [previewColumnName ];
190+ uploaded .value = true ;
191+ emit (' update:emptiness' , false );
189192 }
190- uploaded .value = true ;
191- emit (' update:emptiness' , false );
192193 } else if (! uploaded .value && existingFilePath ) {
193194 const resp = await callAdminForthApi ({
194195 path: ` /plugin/${props .meta .pluginInstanceId }/get-file-download-url ` ,
You can’t perform that action at this time.
0 commit comments