青鸟ai,pc版仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
396 B

import { defHttp } from '@/utils/axios/index'
import type { AxiosProgressEvent } from 'axios'
import type { UploadFileParams } from '/#/axios'
export function uploadApi(params: UploadFileParams, onUploadProgress: (progressEvent: AxiosProgressEvent) => void) {
return defHttp.uploadFile(
{
url: '/qn/iot-system/oss/endpoint/put-file',
onUploadProgress,
},
params,
)
}