Browse Source

banner返回后端全路径

zuy 2 năm trước cách đây
mục cha
commit
d803289170
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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()
 }