From 8d788cfa6a5e4126843106baddbe103a586ce600 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期四, 15 八月 2024 16:10:46 +0800
Subject: [PATCH] 退出登录
---
Source/plt-web/plt-web-ui/src/api/user.js | 9 +++++++++
Source/plt-web/plt-web-ui/src/page/index/top/index.vue | 1 +
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/api/user.js b/Source/plt-web/plt-web-ui/src/api/user.js
index 405e08d..7fb72ed 100644
--- a/Source/plt-web/plt-web-ui/src/api/user.js
+++ b/Source/plt-web/plt-web-ui/src/api/user.js
@@ -37,3 +37,12 @@
});
}
+// 閫�鍑虹櫥褰�
+export function logout(params) {
+ return request({
+ url: "/api/framework/loginController/logout",
+ method: "post",
+ params
+ });
+}
+
diff --git a/Source/plt-web/plt-web-ui/src/page/index/top/index.vue b/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
index 7225469..ca8584f 100644
--- a/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
+++ b/Source/plt-web/plt-web-ui/src/page/index/top/index.vue
@@ -329,6 +329,7 @@
type: "warning"
}).then(() => {
this.$store.dispatch("LogOut").then(() => {
+ console.log('123');
resetRouter();
this.$router.push({path: "/login"});
});
--
Gitblit v1.9.3