信息编号登录问题

This commit is contained in:
胡圣锋 2025-11-23 11:23:19 +08:00
parent addd979586
commit eea951ea09
3 changed files with 4 additions and 7 deletions

View File

@ -28,8 +28,6 @@ import com.ddnai.system.service.ISysUserService;
import com.ddnai.system.service.ISysRoleService; import com.ddnai.system.service.ISysRoleService;
import com.ddnai.common.core.domain.entity.SysRole; import com.ddnai.common.core.domain.entity.SysRole;
import com.ddnai.common.utils.ip.IpUtils; import com.ddnai.common.utils.ip.IpUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**

View File

@ -80,4 +80,4 @@ export function studentLogin(infoNumber, useInfoNumber = false) {
method: 'post', method: 'post',
data: data data: data
}) })
} }

View File

@ -68,14 +68,14 @@
:loading="loading" :loading="loading"
size="medium" size="medium"
type="primary" type="primary"
style="width:100%;" class="login-btn"
@click.native.prevent="handleLogin" @click.native.prevent="handleLogin"
> >
<span v-if="!loading"> </span> <span v-if="!loading"> </span>
<span v-else> 中...</span> <span v-else> 中...</span>
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item style="width:100%; text-align: center; margin-top: 10px;"> <el-form-item style="width:100%; text-align: center; margin-top: 20px;">
<a class="student-login-link" @click="switchToStudent"> <a class="student-login-link" @click="switchToStudent">
<i class="el-icon-back"></i> 返回学员登录 <i class="el-icon-back"></i> 返回学员登录
</a> </a>
@ -95,9 +95,8 @@
/** /**
* 登录页面支持学员登录和管理员登录切换 * 登录页面支持学员登录和管理员登录切换
* 开发者wanxiubin * 开发者wanxiubin
* 作用默认显示学员登录可切换到管理员登录 * 作用默认显示学员登录可切换到管理员登录学员使用信息编号管理员使用用户名+密码
*/ */
import { studentLogin, login } from "@/api/login"
import Cookies from "js-cookie" import Cookies from "js-cookie"
import { encrypt, decrypt } from '@/utils/jsencrypt' import { encrypt, decrypt } from '@/utils/jsencrypt'