Commit c43100af by cocomilk2012

update

parent 91aa45ea
......@@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>员工自助.</title>
<title>员工自助</title>
</head>
<body>
......
......@@ -97,6 +97,8 @@ function getPathByTo(to, authcode_key) {
}
router.beforeEach((to, from, next) => {
console.log('开始路由');
if (isOpenHttps === 'true' && location.href.startsWith('http://')) {
location.href = location.href.replace('http://', 'https://');
}
......@@ -107,6 +109,10 @@ router.beforeEach((to, from, next) => {
}
const authcode = to.query.authCode || to.query.authcode;
console.log('authcode=', authcode);
if (!!authcode) {
getAccessToken(authcode)
.then((res) => {
......
......@@ -92,7 +92,7 @@ export default class SelectIdentity extends Vue {
}
})
.catch(err => {
console.log("err=", err);
console.log("err=");
});
}
......
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 sign in to comment