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