|
@@ -124,7 +124,7 @@ const beforeHandleLogin = async (params) => {
|
|
}
|
|
}
|
|
const handleLogin = async () => {
|
|
const handleLogin = async () => {
|
|
localStorage.removeItem('currentRole')
|
|
localStorage.removeItem('currentRole')
|
|
- const { valid } = tab.value ? await phoneRef.value.phoneForm.validate() : await passRef.value.passwordForm.validate()
|
|
|
|
|
|
+ const { valid } = tab.value === 1 ? await phoneRef.value.phoneForm.validate() : await passRef.value.passwordForm.validate()
|
|
if (!valid) return
|
|
if (!valid) return
|
|
loginLoading.value = true
|
|
loginLoading.value = true
|
|
try {
|
|
try {
|