From 2915136e8881e70b2d9315cf58a05b11310f8f90 Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Thu, 20 Feb 2025 18:41:13 +0800 Subject: [PATCH] save --- app/_lib/upload.ts | 3 +-- package.json | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/_lib/upload.ts b/app/_lib/upload.ts index 4f32bfd..4913cad 100644 --- a/app/_lib/upload.ts +++ b/app/_lib/upload.ts @@ -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; }); } diff --git a/package.json b/package.json index bf6fc48..56f6459 100644 --- a/package.json +++ b/package.json @@ -49,5 +49,11 @@ "postcss": "^8.5.1", "tailwindcss": "^4.0.4", "typescript": "^5" + }, + "pnpm": { + "onlyBuiltDependencies": [ + "bcrypt", + "sharp" + ] } }