xiatian 1 неделя назад
Родитель
Сommit
448cd914a6
1 измененных файлов с 11 добавлено и 1 удалено
  1. 11 1
      src/modules/portal/views/home/Home.vue

+ 11 - 1
src/modules/portal/views/home/Home.vue

@@ -190,6 +190,13 @@
         </el-row>
       </el-form>
     </el-dialog>
+    <a
+      v-show="false"
+      ref="casOut"
+      :href="this.casLogoutUrl"
+      rel="noopener noreferrer"
+      >cas登出</a
+    >
   </el-container>
 </template>
 
@@ -259,6 +266,7 @@ export default {
       }
     };
     return {
+      casLogoutUrl: "#",
       unreadMessageCount: 0,
       userDialog: false,
       passWeakDialog: false,
@@ -350,7 +358,9 @@ export default {
       if ("cas" == this.user.from) {
         this.$http
           .get("/api/auth/logout/" + this.user.scode)
-          .then(() => {
+          .then((response) => {
+            this.casLogoutUrl = response;
+            this.$refs.casOut.click();
             this.USER_SIGNOUT();
           })
           .catch((response) => {