单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
zhangchen
2025-09-16 a99886eb9c73018235e2c373f3d82a2b0b2311d5
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;
    }
}