From 23a824ad509da0925be3128fb25ca828fb319906 Mon Sep 17 00:00:00 2001 From: miaoSpring <539943419@qq.com> Date: Wed, 15 Jan 2025 21:04:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=90=8E=E7=AB=AFapi=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=8C=85=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/api/system/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/system/update.ts b/server/api/system/update.ts index ec0d85a..08d1150 100644 --- a/server/api/system/update.ts +++ b/server/api/system/update.ts @@ -6,7 +6,7 @@ export default defineEventHandler(async (event) => { const file = data.get('file') as File const buffer = await file.arrayBuffer() const uint8Array = new Uint8Array(buffer) - fs.writeFileSync('./userData/test.txt', uint8Array, { + fs.writeFileSync('./.output.tar.gz', uint8Array, { flag: 'w', }) setTimeout(() => {