update upload
This commit is contained in:
1 parent
4928b61669
commit
5ca45d358d
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ server {
|
||||
|
||||
location /api/v1/ {
|
||||
proxy_pass http://data-backend:8000;
|
||||
client_max_body_size 8m;
|
||||
client_max_body_size 20m;
|
||||
}
|
||||
|
||||
location /oauth2/v1/ {
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
<el-upload
|
||||
v-model:file-list="fileList"
|
||||
class="upload-demo"
|
||||
name="image"
|
||||
name="file"
|
||||
:limit="5"
|
||||
:multiple="true"
|
||||
action="/api/v1/images/"
|
||||
action="/api/v1/files/"
|
||||
list-type="picture"
|
||||
:on-exceed="onExceed"
|
||||
:on-error="onError"
|
||||
@@ -55,7 +55,7 @@ export default defineComponent({
|
||||
},
|
||||
urls() {
|
||||
// @ts-ignore
|
||||
return this.fileList.map((file: UploadFile) => file?.response?.image_url);
|
||||
return this.fileList.map((file: UploadFile) => file?.response?.file_url);
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
||||
Reference in new issue
Block a user