소스 검색

banner返回后端全路径

zuy 2 년 전
부모
커밋
d803289170
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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()
 }