This commit is contained in:
lcw
2025-08-27 17:26:29 +08:00
parent 42f5e37f65
commit f4c108b4b4
47 changed files with 4087 additions and 300 deletions

View File

@ -84,6 +84,7 @@ export default {
*/
login(ctx, userInfo) {
const { userName, password, kaptcha } = userInfo;
return new Promise((resolve, reject) => {
login({ userName, password: Base64.encode(password), kaptcha }).then((data) => {
if (data.deptList.length === 1) {
@ -126,7 +127,7 @@ export default {
oatuhLogin(ctx, userInfo) {
const { token, systemId, } = userInfo;
return new Promise((resolve, reject) => {
unifiedLogin({ token, systemId, }).then((data) => {
unifiedLogin({ token, systemId }).then((data) => {
if (data.deptList.length === 1) {
this.commit("user/setToken", data.jwtToken);