Explorar o código

banner返回后端全路径

zuy %!s(int64=2) %!d(string=hai) anos
pai
achega
d803289170
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      admin-web/src/components/form/ExtUpload.vue

+ 2 - 2
admin-web/src/components/form/ExtUpload.vue

@@ -116,9 +116,9 @@ const handleAvatarSuccess: UploadProps['onSuccess'] = (
   imageUrl.value = url;
   // imageUrl.value = URL.createObjectURL(uploadFile.raw!)
   if (props.multiple) {
-    state.imageList.unshift(uuid)
+    state.imageList.unshift(url)
   } else {
-    state.imageList = [uuid]
+    state.imageList = [url]
   }
   emitData()
 }