mirror of
https://github.com/acepanel/panel.git
synced 2026-02-07 09:27:15 +08:00
feat: 应用支持分类筛选
This commit is contained in:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user