Commit f1059024 by 展昭

update

parent 2339ae31
Showing with 5 additions and 4 deletions
...@@ -2,4 +2,6 @@ VUE_APP_OIDC_CONFIG = '{ "authority": "http://106.120.107.150:5000", "client_id" ...@@ -2,4 +2,6 @@ VUE_APP_OIDC_CONFIG = '{ "authority": "http://106.120.107.150:5000", "client_id"
VUE_APP_API_BASEURL = 'http://organization.test.hrs100.cn:18080/' VUE_APP_API_BASEURL = 'http://organization.test.hrs100.cn:18080/'
VUE_APP_API_TEAMMIXURL='http://106.120.107.150:5000/'
VUE_APP_PUBLIC_DIR='/' VUE_APP_PUBLIC_DIR='/'
...@@ -33,9 +33,10 @@ const router = new VueRouter({ ...@@ -33,9 +33,10 @@ const router = new VueRouter({
} }
}) })
function getAccessToken(authCode) { function getAccessToken(authcode) {
console.log('authcode=',authcode);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
api.getAccessToken(authCode) api.getAccessToken(authcode)
.then(res => { .then(res => {
if (res && res.status) { if (res && res.status) {
accessToken = res.data.accessToken; accessToken = res.data.accessToken;
...@@ -79,8 +80,6 @@ async function getToken(access_token, appid, next) { ...@@ -79,8 +80,6 @@ async function getToken(access_token, appid, next) {
}); });
} }
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
const authcode = to.query.authCode || to.query.authcode; const authcode = to.query.authCode || to.query.authcode;
const appid = to.query.appId || to.query.appid; const appid = to.query.appId || to.query.appid;
......
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