LAPTOP-FO2T5SIU\35838 4 月之前
父節點
當前提交
6c58932429
共有 1 個文件被更改,包括 3 次插入1 次删除
  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(() => {})