调整微信登录填写头像昵称提示语

This commit is contained in:
Jason 2023-04-04 15:04:38 +08:00
parent ce6934b886
commit 861de3a0c8
1 changed files with 2 additions and 6 deletions

View File

@ -80,13 +80,9 @@ const avatar = ref()
const handleSubmit = (e: any) => {
const { nickname } = e.detail.value
if (!avatar.value)
return uni.$u.toast({
title: '请添加头像'
})
return uni.$u.toast('请添加头像')
if (!nickname)
return uni.$u.toast({
title: '请输入昵称'
})
return uni.$u.toast('请输入昵称')
emit('update', {
avatar: avatar.value,
nickname