lixuliang
2024-11-22 e26e02fd97880a30b48a6fe086c1b3298903b970
se-ui/src/store/modules/user.js
@@ -1,5 +1,6 @@
import { login, logout, getInfo, refreshToken } from '@/api/login'
import { getToken, setToken, setExpiresIn, removeToken } from '@/utils/auth'
import { encr } from "@/utils/jsencrypt";
const user = {
  state: {
@@ -38,8 +39,11 @@
  actions: {
    // 登录
    Login({ commit }, userInfo) {
      const username = userInfo.username.trim()
      const password = userInfo.password
      let pwd = encr(userInfo.password);
      const password = pwd;
      // const password = userInfo.password
      const code = userInfo.code
      const uuid = userInfo.uuid
      return new Promise((resolve, reject) => {