mirror of
https://github.com/acepanel/panel.git
synced 2026-02-06 22:32:24 +08:00
feat: 优化服务状态显示
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
@@ -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 })
|
||||
}
|
||||
|
||||
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user