| | |
| | | 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: { |
| | |
| | | // 登录 |
| | | 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 |