|
@@ -27,6 +27,7 @@ export default {
|
|
|
getLoginByToken() {
|
|
|
// 获取地址栏中的token
|
|
|
var token = this.$route.query
|
|
|
+ // alert('token: ' + token)
|
|
|
// console.log('token===', token)
|
|
|
// console.log('loginid===', token.loginid)
|
|
|
// 调用登录的接口
|
|
@@ -44,8 +45,9 @@ export default {
|
|
|
this.$store
|
|
|
.dispatch('user/ssoLogin', postForm)
|
|
|
.then((res) => {
|
|
|
+ console.log('res', res)
|
|
|
if (res.result) {
|
|
|
- this.$router.push({ path: '/workbench' })
|
|
|
+ this.$router.push({ path: '/backstage?menuIndex=1296067156231847936&subMenu=1296067784098185216' })
|
|
|
} else {
|
|
|
this.$message(res.msg)
|
|
|
this.$router.push({ path: '/login' }).catch(() => {})
|