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; } }