点击右上角退出系统,发送请求给认证中心 http://localhost:7000/logout?redirectURL=xxx 删除服务器用户登录数据,并将 cookie 中的用户数据清除。
- 修改头部导航组件 src/layout/components/Navbar.vue 的 logout 方法,
async logout() {
// await this.$store.dispatch('user/logout')
// this.$router.push(`/login?redirect=${this.$route.fullPath}`)
window.location.href =