From 19452b07fc24ffea60ba08143e11d04759895fad Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 01 七月 2022 17:30:46 +0800
Subject: [PATCH] 1.节拍工价(查询、新增、编辑、删除、复制工价) 功能开发
---
src/layout/components/Navbar.vue | 24 +++---------------------
1 files changed, 3 insertions(+), 21 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 56bf3c0..c94a446 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -72,27 +72,9 @@
this.$store.dispatch('app/toggleSideBar')
},
async logout() {
- // await this.$store.dispatch('user/logout')
- const usercode = getCookie('navTabId')
- const username = getCookie('admin')
- const usertype = getCookie('usertype')
- const data = {
- usercode,
- username,
- usertype
- }
- const res = await logout(data)
- if (res.code === '200') {
- removeToken()
- resetRouter()
- removeCookie('admin')
- removeCookie('navTabId')
- removeCookie('usertype')
- this.$message.success('閫�鍑烘垚鍔燂紒')
- this.$router.push(`/login?redirect=${this.$route.fullPath}`)
- // this.$router.push(`/login?redirect=${this.$route.fullPath}`)
- }
- // this.$router.push(`/login`)
+ await this.$store.dispatch('user/logout')
+ this.$message.success('閫�鍑烘垚鍔燂紒')
+ this.$router.push(`/login`)
}
}
}
--
Gitblit v1.9.3