generated from Leo_Ding/web-template
信息登记 界面问题修改
This commit is contained in:
parent
a6f6435da9
commit
1b99986398
@ -21,7 +21,7 @@ const options = {
|
||||
},
|
||||
interceptorRequestCatch: () => {},
|
||||
interceptorResponse: (response) => {
|
||||
const list=['/api/v1/activity-registers/export', '/api/v1/captcha/image']
|
||||
const list=['/api/v1/activity-registers/export', '/api/v1/captcha/image','/api/v1/election-registrations/export']
|
||||
// 错误处理
|
||||
const { success, msg = 'Network Error' } = response.data || {}
|
||||
if (![true].includes(success) && !list.includes(response.config.url)) {
|
||||
|
||||
@ -195,8 +195,8 @@ async function handleExport() {
|
||||
document.body.removeChild(link)
|
||||
window.URL.revokeObjectURL(url)
|
||||
} catch (error) {
|
||||
// message.error('导出失败:' + (error.message || '未知错误'))
|
||||
// console.error('导出文件出错:', error)
|
||||
message.error('导出失败:' + (error.message || '未知错误'))
|
||||
console.error('导出文件出错:', error)
|
||||
}
|
||||
}
|
||||
const handleClick = async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user