Xiao_123 9 月之前
父節點
當前提交
c5ee077f2a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/login/index.vue

+ 1 - 1
src/views/login/index.vue

@@ -124,7 +124,7 @@ const beforeHandleLogin = async (params) => {
 }
 const handleLogin = async () => {
   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
   loginLoading.value = true
   try {