修复BUG:

1.文件上传返回值缺少问题
This commit is contained in:
猿小天
2023-12-20 23:44:45 +08:00
parent 916071814a
commit 7d315a7d28
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# port 端口号
VITE_PORT = 8080
VITE_API_URL = 'http://dvadmin3api.django.icu:8001'
# open 运行 npm run dev 时自动打开浏览器
VITE_OPEN = false

View File

@@ -104,7 +104,8 @@ export default {
// 上传完成后的结果处理, 此处应返回格式为{url:xxx,key:xxx}
return {
url: getBaseURL() + ret.data.url,
key: ret.data.id
key: ret.data.id,
...ret.data
};
}
}