dedsudiyu 1 year ago
parent
commit
1ca67d4832
1 changed files with 2 additions and 8 deletions
  1. 2 8
      src/views/ssoLogin.vue

+ 2 - 8
src/views/ssoLogin.vue

@@ -94,8 +94,8 @@
         }
       } else {
         console.log('没找到---->')
-        // this.ssoGetLoginUser()
-        this.logout()
+        localStorage.removeItem('serviceType');
+        store.dispatch('LogOut').then(() => {})
       }
       localStorage.setItem('windowHref', window.location.href)
     },
@@ -128,12 +128,6 @@
           // window.open('https://icas.jnu.edu.cn/cas/login?service=http://localhost:8081/sso/getLoginUser','_self')
         })
       },
-      //退出
-      logout() {
-        logout(response => {
-          // window.open('https://icas.jnu.edu.cn/cas/login?service=http://localhost:8081/sso/getLoginUser','_self')
-        })
-      },
       //获取首页配置
       initPage(){
         initPage().then(response => {