提交 29fb4f70 编写于 作者: A Anne_LXM

fix:PC设置头像无效

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