From c573cd85962d0f2ae1dd542f3e10e4097e63091c Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期五, 12 九月 2025 11:42:18 +0800
Subject: [PATCH] ID1766-暂存
---
src/utils/httpApi.ts | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/src/utils/httpApi.ts b/src/utils/httpApi.ts
index 0cbfeef..632b95f 100644
--- a/src/utils/httpApi.ts
+++ b/src/utils/httpApi.ts
@@ -82,9 +82,9 @@
* 获取副屏最新的版本号Api
* @returns
*/
-export const getServiceVersionApi = async() => {
+export const getServiceVersionApi = async(version: string) => {
try {
- const response = await axios.post(`${apiBaseUrl}/system/version/subscreen/showVersionDiff`, {}, {
+ const response = await axios.post(`${apiBaseUrl}/system/version/subscreen/showVersionDiff`, { version }, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
@@ -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