调整微信登录填写头像昵称提示语
This commit is contained in:
parent
ce6934b886
commit
861de3a0c8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue