|
@@ -5,6 +5,7 @@
|
|
|
import user from "@/http/api/user";
|
|
import user from "@/http/api/user";
|
|
|
import { setToken } from "@/utils/auth";
|
|
import { setToken } from "@/utils/auth";
|
|
|
// import { getToken} from '@/utils/auth';
|
|
// import { getToken} from '@/utils/auth';
|
|
|
|
|
+import { encrypt } from "@/utils/jsencrypt";
|
|
|
import base from "@/http/common/base";
|
|
import base from "@/http/common/base";
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
@@ -32,7 +33,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
sessionStorage.setItem('schoolType', type);//1:单校 2:联校
|
|
sessionStorage.setItem('schoolType', type);//1:单校 2:联校
|
|
|
const params = {
|
|
const params = {
|
|
|
- "password": decodeURI(pw),//解密
|
|
|
|
|
|
|
+ "password": encrypt(decodeURI(pw)),//解密
|
|
|
"username": code
|
|
"username": code
|
|
|
};
|
|
};
|
|
|
user.loginEmailPass(params).then((res) => {
|
|
user.loginEmailPass(params).then((res) => {
|