import axios from 'axios'; /** * 上传 License 文件 * @param {File} file 要上传的文件 * @returns {Promise} 返回上传结果 */ export function uploadLicense(file) { const formData = new FormData(); formData.append('file', file); return axios.post('/api/blade-system/license/uploadLicense', formData, { headers: { 'Content-Type': 'multipart/form-data', Authorization: `Bearer ${localStorage.getItem('token')}`, // 替换为实际的认证 token }, }); }