单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
zhangchen
2025-09-09 d085d0504041e29e82b51a6ade1a183149fc9ffa
src/utils/httpApi.ts
@@ -58,4 +58,39 @@
        console.error('Error setting timeout alert:', error);
        throw error;
    }
};
};
/**
 * 停止定时任务
 * @param deviceCode
 * @returns
 */
export const stopTimeoutAlert = async (deviceCode: string) => {
    try {
        const response = await axios.post(`${apiBaseUrl}/patient/hemo/med/record/stopTimeoutAlert`, { deviceCode }, {
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        });
        return response.data;
    } catch (error) {
        throw error;
    }
}
/**
 * 获取副屏最新的版本号Api
 * @returns
 */
export const getServiceVersionApi = async(version: string) => {
    try {
        const response = await axios.post(`${apiBaseUrl}/system/version/subscreen/showVersionDiff`, { version }, {
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        });
        return response.data;
    } catch (error) {
        throw error;
    }
}