正好是环境域名改为https结构
This commit is contained in:
@@ -110,7 +110,7 @@ router.beforeEach((to, from, next) => {
|
||||
|
||||
// TODO 在部署线上时解开此代码
|
||||
// window.location.href = 'https://signin.nio.com/oauth2/authorize?client_id=100679&redirect_uri='
|
||||
// + encodeURIComponent('http://grp.nioint.com' + fullPath) + '&response_type=code&state=' + JSON.stringify(to.query) //线上
|
||||
// + encodeURIComponent('https://grp.nioint.com' + fullPath) + '&response_type=code&state=' + JSON.stringify(to.query) //线上
|
||||
})
|
||||
})
|
||||
} else {
|
||||
@@ -136,7 +136,7 @@ router.beforeEach((to, from, next) => {
|
||||
// + encodeURIComponent('http://localhost:3000' + fullPath) + '&response_type=code&state=' + JSON.stringify(to.query) //本地
|
||||
// TODO 在部署线上时解开此代码
|
||||
// window.location.href = 'https://signin.nio.com/oauth2/authorize?client_id=100679&redirect_uri='
|
||||
// + encodeURIComponent('http://grp.nioint.com' + fullPath) + '&response_type=code&state=' + JSON.stringify(to.query) //线上
|
||||
// + encodeURIComponent('https://grp.nioint.com' + fullPath) + '&response_type=code&state=' + JSON.stringify(to.query) //线上
|
||||
|
||||
NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user