From 1ab9d97fce938af19e7dc4815630f9e5ee6832ad Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 24 Aug 2025 11:15:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9AuploadFilesFromPath=20=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=97=B6=EF=BC=8Cdirectory=20=E5=AD=98=E5=9C=A8=20?= =?UTF-8?q?=E2=80=9C[object=20Undefined]=E2=80=9D=20=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sheep/api/infra/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheep/api/infra/file.js b/sheep/api/infra/file.js index 8835595..a4cd093 100644 --- a/sheep/api/infra/file.js +++ b/sheep/api/infra/file.js @@ -3,7 +3,7 @@ import request, { getAccessToken } from '@/sheep/request'; const FileApi = { // 上传文件 - uploadFile: (file, directory) => { + uploadFile: (file, directory = '') => { uni.showLoading({ title: '上传中', });