搬运任务加提示框

This commit is contained in:
2024-08-13 10:11:49 +08:00
parent b9dd9c7e57
commit 3473030744
6 changed files with 29 additions and 20 deletions

View File

@@ -71,19 +71,7 @@
// url: '/pages/home/home'
// })
this.disabled = true
if (this.user === '') {
uni.showToast({
title: '用户名不能为空',
icon: 'none'
})
this.disabled = false
return
}
if (this.password === '') {
uni.showToast({
title: '密码不能为空',
icon: 'none'
})
if (this.user === '' || this.password === '') {
this.disabled = false
return
}