2024-10-24 10:42:44 +08:00
|
|
|
import { http } from '@/api/service/request';
|
|
|
|
import type { BaseResult } from '@/api/service/types';
|
|
|
|
|
2025-04-27 22:16:06 +08:00
|
|
|
/** 读取web配置文件并返回给前端 */
|
2025-04-26 10:25:12 +08:00
|
|
|
export const getWebConfig = () => {
|
2025-05-12 20:40:42 +08:00
|
|
|
return http.request<any>('get', '/config/public/web-config');
|
2024-10-24 10:42:44 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/** 更新web配置文件 */
|
2025-04-26 10:25:12 +08:00
|
|
|
export const updateWebConfiguration = (data: any) => {
|
|
|
|
return http.request<BaseResult<any>>('put', '/config', { data });
|
2024-10-24 10:42:44 +08:00
|
|
|
};
|