This commit is contained in:
expdsn 2025-02-20 18:41:13 +08:00
parent f532a992e1
commit 2915136e88
2 changed files with 7 additions and 2 deletions

View File

@ -23,8 +23,7 @@ export default async function uploadOss(file: File, root: string) {
"Content-Type": file.type,
},
})
.then((res) => {
console.log(res);
.then((res: { name: string }) => {
return ossBase + "/" + res.name;
});
}

View File

@ -49,5 +49,11 @@
"postcss": "^8.5.1",
"tailwindcss": "^4.0.4",
"typescript": "^5"
},
"pnpm": {
"onlyBuiltDependencies": [
"bcrypt",
"sharp"
]
}
}