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