Commit b94243f0 by songwenlu

gx

parents eb90668c 0ea408de
......@@ -63,7 +63,7 @@ export default {
},
created() {
// 测试模拟人员信息
// this.init();
this.init();
},
};
</script>
......
......@@ -39,7 +39,7 @@ const request2 = axios.create({
timeout: 30000,
withCredentials: false,
});
// sessionStorage.setItem('token',"cAu7hNfHsBhC0slp3t2fpTFhYb1P9I5X339Hq7Y7BRSqIn18qGEVJSGZ7xy5Woex")
request2.interceptors.request.use(
(config) => {
config.headers = {
......
......@@ -103,6 +103,7 @@ request1.interceptors.request.use(
(config) => {
config.headers = config.headers || {
"Content-Type": "application/json",
token:'Bearer '+'00JcqsZfWIT3nfMR9fL2pfgsbraInluMinxgSWxmnm916AG92mTkUzs5ML6dQIl4'
};
// if (config.method === 'post') {
// config.data = { ...config.data }
......
......@@ -19,7 +19,7 @@ export function getDays(leng) {
date = date > 9 ? date : `0${date}`;
timeStr = year + "-" + month + "-" + date;
timeArr.push(timeStr);
}
}CryptoJS
return timeArr;
}
......
......@@ -249,7 +249,9 @@ export default {
get({
appId: 1234,
// userId: encryptByDES(this.userInfo.userId.toString(), "MnuYbhGv"),
idCard: this.userInfo.idCardNo ? decryptByDES(this.userInfo.idCardNo, "MnuYbhGv") : null
idCard: this.userInfo.idCardNo
? decryptByDES(this.userInfo.idCardNo, "MnuYbhGv")
: null,
}).then((res) => {
console.log("res------", res);
// alert(JSON.stringify(res))
......@@ -495,8 +497,7 @@ export default {
}
sessionStorage.setItem("ZJCD-UserInfo", res);
this.userInfo = userInfo;
sessionStorage.setItem('token', this.userInfo.token),
this.init();
sessionStorage.setItem("token", this.userInfo.token), this.init();
},
callPhone(branchPhone) {
if (window.android !== undefined) {
......
......@@ -89,6 +89,7 @@ export default {
this.list = [];
},
filterData(item) {
this.genera = item.name;
let area = this.$store.state.talents.area;
if (item.status == "0") {
......
......@@ -526,7 +526,7 @@ export default {
this.$toast("文件大小不能超过 10MB");
},
init() {
console.log(this.userInfo);
console.log(this.userInfo,"user------");
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment