浏览代码

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()
 }