22
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 51s

This commit is contained in:
heixinyouzi 2024-11-14 16:45:39 +08:00
parent c8bf03c5e2
commit c2013b8643

View File

@ -64,18 +64,18 @@ const list = ref([]);
const token = cookie.get("token");
async function fileFinish(file) {
const res = JSON.parse(file.event.currentTarget.response);
console.log("返回文件",res);
console.log("返回文件", res);
const r = await $http.file.uploadImg({
url: res.data.links.url,
filename : res.data.origin_name,
filename: res.data.origin_name,
});
console.log("上传服务器",r);
if (res.code == 1) {
$msg.success(res.msg);
console.log("上传服务器", r);
if (r.code == 1) {
$msg.success(r.msg);
getMyfile();
} else {
$msg.error(res.msg);
$msg.error(r.msg);
}
}