提交 382ae57d 编写于 作者: A Anne_LXM

fix:PC设置头像无效

上级 a9429d4a
...@@ -129,10 +129,9 @@ ...@@ -129,10 +129,9 @@
filePath = res.tempFilePaths[0] filePath = res.tempFilePaths[0]
//非app端剪裁头像,app端用内置的原生裁剪 //非app端剪裁头像,app端用内置的原生裁剪
// #ifndef APP-PLUS
filePath = await new Promise((callback) => {
// #ifdef H5 // #ifdef H5
if (!this.isPC) { if (!this.isPC) {
filePath = await new Promise((callback) => {
uni.navigateTo({ uni.navigateTo({
url: '/uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage?path=' + url: '/uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage?path=' +
filePath + `&options=${JSON.stringify(crop)}`, filePath + `&options=${JSON.stringify(crop)}`,
...@@ -143,12 +142,11 @@ ...@@ -143,12 +142,11 @@
} }
}, },
complete(e) { complete(e) {
// console.log(e); console.log(e);
} }
}); });
}
// #endif
}) })
}
// #endif // #endif
let cloudPath = this.userInfo._id + '' + Date.now() let cloudPath = this.userInfo._id + '' + Date.now()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册