import upload from '@/utils/upload' export function uploadFile(data) { return upload({ url: '/admin-api/infra/file/upload', method: 'POST', name: data.name, filePath: data.filePath }) }