feat: 优化服务状态显示

This commit is contained in:
耗子
2025-05-17 18:21:08 +08:00
parent d5d941c62b
commit c5ec454b26
23 changed files with 296 additions and 1552 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { http } from '@/utils'
export default {
getConfig: (): any => http.Get('/apps/docker/config'),
config: (): any => http.Get('/apps/docker/config'),
updateConfig: (config: string): any => http.Post('/apps/docker/config', { config })
}
+2 -2
View File
@@ -1,7 +1,7 @@
import { http } from '@/utils'
export default {
getLoad: (): any => http.Get('/apps/memcached/load'),
getConfig: (): any => http.Get('/apps/memcached/config'),
load: (): any => http.Get('/apps/memcached/load'),
config: (): any => http.Get('/apps/memcached/config'),
updateConfig: (config: string): any => http.Post('/apps/memcached/config', { config })
}
+2 -2
View File
@@ -6,7 +6,7 @@ export default {
// 设置端口
port: (port: number): any => http.Post('/apps/phpmyadmin/port', { port }),
// 获取配置
getConfig: (): any => http.Get('/apps/phpmyadmin/config'),
config: (): any => http.Get('/apps/phpmyadmin/config'),
// 保存配置
saveConfig: (config: string): any => http.Post('/apps/phpmyadmin/config', { config })
updateConfig: (config: string): any => http.Post('/apps/phpmyadmin/config', { config })
}