2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 09:27:15 +08:00

feat: 应用支持分类筛选

This commit is contained in:
2026-01-04 17:53:45 +08:00
parent e6fcd48e32
commit 0b1d2a570b
11 changed files with 123 additions and 15 deletions

View File

@@ -1,8 +1,11 @@
import { http } from '@/utils'
export default {
// 获取分类列表
categories: (): any => http.Get('/app/categories'),
// 获取应用列表
list: (page: number, limit: number): any => http.Get('/app/list', { params: { page, limit } }),
list: (page: number, limit: number, category?: string): any =>
http.Get('/app/list', { params: { page, limit, category } }),
// 安装应用
install: (slug: string, channel: string | null): any =>
http.Post('/app/install', { slug, channel }),