mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-27 14:57:10 +08:00
refactor: 适配系统配置
This commit is contained in:
@@ -3,6 +3,7 @@ import qs from 'query-string';
|
||||
import { ListParam as DeptParam } from '@/api/system/dept';
|
||||
import { ListParam as MenuParam } from '@/api/system/menu';
|
||||
import { ListParam as RoleParam } from '@/api/system/role';
|
||||
import { ListParam as OptionParam } from '@/api/system/config';
|
||||
import { TreeNodeData } from '@arco-design/web-vue';
|
||||
import { LabelValueState } from '@/store/modules/dict/types';
|
||||
|
||||
@@ -39,6 +40,15 @@ export function listDict(code: string) {
|
||||
return axios.get<LabelValueState[]>(`${BASE_URL}/dict/${code}`);
|
||||
}
|
||||
|
||||
export function listOption(params: OptionParam) {
|
||||
return axios.get<LabelValueState[]>(`${BASE_URL}/option`, {
|
||||
params,
|
||||
paramsSerializer: (obj) => {
|
||||
return qs.stringify(obj);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
export function upload(data: FormData) {
|
||||
return axios.post(`${BASE_URL}/file`, data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user