LAPTOP-FO2T5SIU\35838 4 miesięcy temu
rodzic
commit
6c58932429
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/views/singleLogin/ssoLogin.vue

+ 3 - 1
src/views/singleLogin/ssoLogin.vue

@@ -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(() => {})