diff --git a/src/api/user.js b/src/api/user.js index 8951a76..df85f3b 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -131,10 +131,11 @@ export function setAutoCutNextTask(params) { }) } -export function loginOut() { +export function loginOut(params) { return request({ url: `/User/loginOut`, - method: 'get' + method: 'get', + params }) } diff --git a/src/views/trials/trials-layout/components/trialsNavbar.vue b/src/views/trials/trials-layout/components/trialsNavbar.vue index f4376e2..38dca1a 100644 --- a/src/views/trials/trials-layout/components/trialsNavbar.vue +++ b/src/views/trials/trials-layout/components/trialsNavbar.vue @@ -279,7 +279,7 @@ export default { this.$store.dispatch('app/toggleSideBar') }, async logout() { - await loginOut() + // await loginOut() await this.$store.dispatch('user/logout') this.$router.push(`/login`) this.$i18n.locale = 'zh'