From 61b76467f94b46ab51a8397502218fc615578408 Mon Sep 17 00:00:00 2001 From: Anne_LXM <54163582+anne-lxm@users.noreply.github.com> Date: Fri, 29 Mar 2024 19:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87=E7=82=B9=E5=8F=B7=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=AC=A6=E8=AE=BF=E9=97=AE=20UTSJSONObject=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=95=B0=E6=8D=AE=E6=8A=A5=E9=94=99=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=8B=E6=A0=87=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/uni_modules/uni-id-pages-x/components/uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue b/uni_modules/uni-id-pages-x/components/uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue index 11a0c65..9863142 100644 --- a/uni_modules/uni-id-pages-x/components/uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue +++ b/uni_modules/uni-id-pages-x/components/uni-id-pages-x-avatar/uni-id-pages-x-avatar.uvue @@ -147,8 +147,6 @@ if (tempFilePath == null) { tempFilePath = "" } - // console.log('tempFileName',tempFileName); - // console.log('tempFilePath',tempFilePath); let avatar_file = { // #ifdef WEB extname: tempFileName.split(".")[tempFileName.split(".").length - 1], @@ -192,20 +190,17 @@ // _id = "" as string // } let cloudPath = _id + '' + Date.now() - avatar_file.name = cloudPath + avatar_file['name'] = cloudPath uni.showLoading({ title: "更新中", mask: true }); - // console.log('filePath', filePath); uniCloud.uploadFile({ filePath, cloudPath, }) .then(function (res) { - // console.log('res', res); - avatar_file.url = res.fileID - // console.log('avatar_file111', avatar_file); + avatar_file['url'] = res.fileID mutations.updateUserInfo({ avatar_file } as UTSJSONObject) }) .catch(function (err : any | null) { -- GitLab