shikeying
2023-04-07 c192f834c4e092bc7c0f2722c343c25c1be619ab
src/store/modules/user.js
@@ -1,6 +1,6 @@
import { login, logout, getInfo } from '@/api/login'
import { getToken, setToken, removeToken } from '@/utils/auth'
import log from "@/views/monitor/job/log";
import {encrypt} from '@/utils/jsencrypt'
const user = {
  state: {
@@ -33,7 +33,8 @@
    // 登录
    Login({ commit }, userInfo) {
      const username = userInfo.username.trim()
      const password = userInfo.password
      // const password = userInfo.password
      const password = encrypt(userInfo.password)
      const code = userInfo.code
      const uuid = userInfo.uuid
      const loginType = userInfo.loginType