diff --git a/src/components/menu.vue b/src/components/menu.vue index 5ef104f81775ae8532550f47a974722371e1f523..b1fa424984f3dbfe03cceac5cca75be7656f0311 100644 --- a/src/components/menu.vue +++ b/src/components/menu.vue @@ -171,19 +171,8 @@ export default { methods: { gotopage(n) { if (n == "logout") { - let query = { - returnUrl: "/apaas/ui/#" + this.$route.path - }; - this.$api.general.logout(query).then(response => { - if (response.data.success == 1) { - this.$message({ - message: `η™»ε‡ΊζˆεŠŸ`, - type: "success" - }); - } else { - console.log(response.data.errMsg); - } - }); + window.location.href = + "/iam/api/logout?ReturnUrl=/apaas/ui/#" + this.$route.path; } else { this.$router.push(n); } @@ -235,7 +224,7 @@ export default { }, getMenuIndex() { let index = window.sessionStorage.getItem("menuIndex"); - console.log(index) + console.log(index); this.now_menu = index ? index : 2; } }