Search K
Appearance
Appearance
在初次创建项目的时候未配置npmrc文件,生成的yarn lock 文件中的注册包地址为yarnpkg 官方地址,而后续添加后来的包地址为淘宝镜像地址,在Jenkins打包的时候网络波动导致无法拉取包,导致打包失败。
如何解决
const res = await performancestatExportCollegeCoreScoreByGet({
params: {
year: query.year ! ,
},
},
{
responseType: 'blob',
getResponse: true,
},
);
上传文件时,文件名未进行转义,导致文件名中包含特殊字符时,无法直接使用 浏览器访问,直接下载无法使用 使用encodeURIComponent进行转义即可
const fileName = encodeURIComponent(res.headers['content-disposition'].split('filename=')[1]);
详见