mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-07 02:57:11 +08:00
refactor: 重构字典管理(左树右表)
This commit is contained in:
@@ -4,8 +4,8 @@ import http from '@/utils/http'
|
||||
const BASE_URL = '/system/dict'
|
||||
|
||||
/** @desc 查询字典列表 */
|
||||
export function listDict(query: System.DictPageQuery) {
|
||||
return http.get<PageRes<System.DictResp[]>>(`${BASE_URL}`, query)
|
||||
export function listDict(query: System.DictQuery) {
|
||||
return http.get<System.DictResp[]>(`${BASE_URL}/list`, query)
|
||||
}
|
||||
|
||||
/** @desc 查询字典详情 */
|
||||
|
||||
@@ -146,9 +146,6 @@ export interface DictQuery {
|
||||
sort: Array<string>
|
||||
}
|
||||
|
||||
export interface DictPageQuery extends DictQuery, PageQuery {
|
||||
}
|
||||
|
||||
export type DictItemResp = {
|
||||
id: string
|
||||
label: string
|
||||
|
||||
Reference in New Issue
Block a user