From a99886eb9c73018235e2c373f3d82a2b0b2311d5 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期二, 16 九月 2025 13:36:40 +0800
Subject: [PATCH] Merge branch 'ID1766-添加推送登录功能' into test
---
src/utils/httpApi.ts | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/src/utils/httpApi.ts b/src/utils/httpApi.ts
index d8f0c2e..632b95f 100644
--- a/src/utils/httpApi.ts
+++ b/src/utils/httpApi.ts
@@ -93,4 +93,22 @@
} catch (error) {
throw error;
}
+}
+
+/**
+ * 推出登录
+ * @param deviceCode
+ * @returns
+ */
+export const logoutForSubScreen = async(deviceCode: string) => {
+ try {
+ const response = await axios.post(`${apiBaseUrl}/user/info/logoutForSubScreen`, { deviceCode }, {
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ }
+ });
+ return response.data
+ } catch (error) {
+ throw error;
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0