|
@@ -4,6 +4,7 @@ import {
|
|
getToken
|
|
getToken
|
|
} from '@/utils/auth'
|
|
} from '@/utils/auth'
|
|
import load from '@/utils/loading'
|
|
import load from '@/utils/loading'
|
|
|
|
+import cleanDeep from 'clean-deep'
|
|
|
|
|
|
/**
|
|
/**
|
|
* 导出模板
|
|
* 导出模板
|
|
@@ -38,7 +39,7 @@ export const Export = (that, params, message) => {
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
load.startLoading()
|
|
load.startLoading()
|
|
- axios(options).then(res => {
|
|
|
|
|
|
+ axios(cleanDeep(options)).then(res => {
|
|
let blob = new Blob([res.data], {
|
|
let blob = new Blob([res.data], {
|
|
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
type: "application/vnd.ms-excel;charset=utf-8"
|
|
type: "application/vnd.ms-excel;charset=utf-8"
|