2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 20:48:42 +08:00

feat: 网站默认设置

This commit is contained in:
2026-01-09 18:04:13 +08:00
parent f48c975de3
commit 3168e6efe3
8 changed files with 166 additions and 122 deletions

View File

@@ -14,8 +14,7 @@ export default {
// 获取默认配置
defaultConfig: (): any => http.Get('/website/default_config'),
// 保存默认配置
saveDefaultConfig: (index: string, stop: string): any =>
http.Post('/website/default_config', { index, stop }),
saveDefaultConfig: (data: any): any => http.Post('/website/default_config', data),
// 网站配置
config: (id: number): any => http.Get('/website/' + id),
// 保存网站配置