mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-23 08:57:10 +08:00
feat: 新增文件管理
This commit is contained in:
@@ -18,3 +18,8 @@ export function listRoleDict(query?: { name: string; status: number }) {
|
||||
export function listCommonDict(code: string) {
|
||||
return http.get<LabelValueState[]>(`${BASE_URL}/dict/${code}`)
|
||||
}
|
||||
|
||||
/** @desc 上传文件 */
|
||||
export function uploadFile(data: FormData) {
|
||||
return http.post(`${BASE_URL}/file`, data)
|
||||
}
|
Reference in New Issue
Block a user