diff --git a/src/api/login.js b/src/api/login.js index d414e48..98c6787 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,7 +1,9 @@ import request from '@/utils/request' +import { encrypt } from '@/utils/jsencrypt' // 登录方法 export function login(username, password, code) { + password = encrypt(password); const data = { username, password,