2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 05:03:13 +08:00

feat: 前端重构1

This commit is contained in:
耗子
2024-09-28 22:37:51 +08:00
parent e1b53e88ec
commit e5f36df4bf
98 changed files with 492 additions and 676 deletions

View File

@@ -0,0 +1,15 @@
import { request } from '@/utils'
import type { AxiosResponse } from 'axios'
export default {
// 获取信息
info: (): Promise<AxiosResponse<any>> => request.get('/apps/phpmyadmin/info'),
// 设置端口
port: (port: number): Promise<AxiosResponse<any>> =>
request.post('/apps/phpmyadmin/port', { port }),
// 获取配置
getConfig: (): Promise<AxiosResponse<any>> => request.get('/apps/phpmyadmin/config'),
// 保存配置
saveConfig: (config: string): Promise<AxiosResponse<any>> =>
request.post('/apps/phpmyadmin/config', { config })
}