|
@@ -25,12 +25,14 @@ router.beforeEach((to, from, next) => {
|
|
|
to.matched.splice(2, to.matched.length - 3)
|
|
|
}
|
|
|
|
|
|
- let param = {}
|
|
|
- param.eiToken = ''
|
|
|
- param.username = 'iotedge@iotedge.sense'
|
|
|
+ // console.log(to)
|
|
|
+
|
|
|
+ // let param = {}
|
|
|
+ // param.eiToken = ''
|
|
|
+ // param.username = 'iotedge@iotedge.sense'
|
|
|
// param.token = cookie.get('EIToken')
|
|
|
// param.username = cookie.get('WISEUser')
|
|
|
- store.dispatch('IotSsoLogin', param).then(response => {
|
|
|
+ store.dispatch('IotSsoLogin').then(response => {
|
|
|
// 有EIToken
|
|
|
// console.log('pppppppppresult', response)
|
|
|
if (to.path === '/user/login' || to.path === OAUTH2_LOGIN_PAGE_PATH) {
|