update upload

This commit is contained in:
AceDataCloud committed 2023-12-31 01:08:05 +08:00
1 parent 4928b61669
commit 5ca45d358d
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ server {
location /api/v1/ { location /api/v1/ {
proxy_pass http://data-backend:8000; proxy_pass http://data-backend:8000;
client_max_body_size 8m; client_max_body_size 20m;
} }
location /oauth2/v1/ { location /oauth2/v1/ {
+3 -3
View File
@@ -3,10 +3,10 @@
<el-upload <el-upload
v-model:file-list="fileList" v-model:file-list="fileList"
class="upload-demo" class="upload-demo"
name="image" name="file"
:limit="5" :limit="5"
:multiple="true" :multiple="true"
action="/api/v1/images/" action="/api/v1/files/"
list-type="picture" list-type="picture"
:on-exceed="onExceed" :on-exceed="onExceed"
:on-error="onError" :on-error="onError"
@@ -55,7 +55,7 @@ export default defineComponent({
}, },
urls() { urls() {
// @ts-ignore // @ts-ignore
return this.fileList.map((file: UploadFile) => file?.response?.image_url); return this.fileList.map((file: UploadFile) => file?.response?.file_url);
} }
}, },
watch: { watch: {