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 11a0c653ab00977eea8255f6edd92ad180881c78..98631420fa82539e12ffdb22392a13ee2f2899f6 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) {