From de0423645589724ab810880161608883c885543b Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 11 Sep 2025 17:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.js | 5 +++-- src/views/trials/trials-layout/components/trialsNavbar.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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'