|
|
@@ -80,7 +80,7 @@ import { getCodeImg } from "@/api/login"
|
|
|
import Cookies from "js-cookie"
|
|
|
import { encrypt, decrypt } from "@/utils/jsencrypt"
|
|
|
import { encryptAES, decryptAES } from '@/utils/cryptoAES'
|
|
|
-import { getIsKey } from '@/utils/crypto'
|
|
|
+// import { getIsKey } from '@/utils/crypto'
|
|
|
import useUserStore from '@/store/modules/user'
|
|
|
import LoginResetPwd from './loginResetPwd.vue'
|
|
|
|
|
|
@@ -136,8 +136,8 @@ function handleLogin() {
|
|
|
|
|
|
const requestForm = { ...loginForm.value }
|
|
|
try {
|
|
|
- const keyObj = await getIsKey()
|
|
|
- const isKey = keyObj["data"];
|
|
|
+ // const keyObj = await getIsKey()
|
|
|
+ const isKey = "1";
|
|
|
if("1" === isKey || 1 === isKey){
|
|
|
requestForm.username = encryptAES(loginForm.value.username)
|
|
|
requestForm.password = encryptAES(loginForm.value.password)
|