Browse Source

Update loganInfo.tsx

lex 1 year ago
parent
commit
3e54c15c40
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/components/col-header/modals/loganInfo.tsx

+ 5 - 2
src/components/col-header/modals/loganInfo.tsx

@@ -11,7 +11,8 @@ import {
   ElDropdown,
   ElDropdownItem,
   ElDropdownMenu,
-  ElMessageBox
+  ElMessageBox,
+  ElMessage
 } from 'element-plus'
 import classes from './index.module.less'
 import teacherHeader from '@/common/images/icon_teacher.png'
@@ -152,7 +153,8 @@ export default defineComponent({
               ? '/api-website/teacher/queryUserInfo'
               : '/api-website/student/queryUserInfo'
           const { data } = await request.get(url)
-
+          console.log(data, userType)
+          return
           if (data.userType.indexOf(userType) != -1) {
             setAuth(
               JSON.stringify({
@@ -167,6 +169,7 @@ export default defineComponent({
             }, 500)
           } else {
             // 账号已锁定
+            ElMessage.error('无法切换,账号异常')
           }
         } catch {
           // state.user.status = 'init'