mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-11 16:57:09 +08:00
feat: 新增系统配置
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import http from '@/utils/http'
|
||||
import type { LabelValueState } from '@/types/global'
|
||||
import type { TreeNodeData } from '@arco-design/web-vue'
|
||||
import type {OptionQuery} from '@/apis'
|
||||
|
||||
const BASE_URL = '/common'
|
||||
|
||||
@@ -24,6 +25,11 @@ export function listCommonDict(code: string) {
|
||||
return http.get<LabelValueState[]>(`${BASE_URL}/dict/${code}`)
|
||||
}
|
||||
|
||||
/** @desc 获取系统参数 */
|
||||
export function listOption(params: OptionQuery) {
|
||||
return http.get<LabelValueState[]>(`${BASE_URL}/option`, params)
|
||||
}
|
||||
|
||||
/** @desc 上传文件 */
|
||||
export function uploadFile(data: FormData) {
|
||||
return http.post(`${BASE_URL}/file`, data)
|
||||
|
Reference in New Issue
Block a user