sync: 同步 RuoYi-Vue-Plus(v4.3.1) 更新

This commit is contained in:
konbai
2022-12-04 22:13:46 +08:00
parent d28620ae0a
commit 72320c5cf2
44 changed files with 333 additions and 209 deletions

View File

@@ -132,12 +132,13 @@ service.interceptors.response.use(res => {
)
// 通用下载方法
export function download(url, params, filename) {
export function download(url, params, filename, config) {
downloadLoadingInstance = Loading.service({ text: "正在下载数据,请稍候", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.7)", })
return service.post(url, params, {
transformRequest: [(params) => { return tansParams(params) }],
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
responseType: 'blob'
responseType: 'blob',
...config
}).then(async (data) => {
const isLogin = await blobValidate(data);
if (isLogin) {