代码提交
This commit is contained in:
@ -44,8 +44,7 @@ const modelRef = ref()
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function afterChooseFile(event) {
|
||||
const imgObj = await objectURLToBlob(event.file.url)
|
||||
await doUpdateAvatar(new File([imgObj], '', {type: imgObj.type}))
|
||||
await doUpdateAvatar(event.file)
|
||||
}
|
||||
|
||||
function sexChange(event) {
|
||||
|
||||
Reference in New Issue
Block a user