信息登记 界面问题修改

This commit is contained in:
qiuyuan 2025-09-02 10:25:31 +08:00
parent a6f6435da9
commit 1b99986398
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ const options = {
}, },
interceptorRequestCatch: () => {}, interceptorRequestCatch: () => {},
interceptorResponse: (response) => { 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 || {} const { success, msg = 'Network Error' } = response.data || {}
if (![true].includes(success) && !list.includes(response.config.url)) { if (![true].includes(success) && !list.includes(response.config.url)) {

View File

@ -195,8 +195,8 @@ async function handleExport() {
document.body.removeChild(link) document.body.removeChild(link)
window.URL.revokeObjectURL(url) window.URL.revokeObjectURL(url)
} catch (error) { } catch (error) {
// message.error('' + (error.message || '')) message.error('导出失败:' + (error.message || '未知错误'))
// console.error(':', error) console.error('导出文件出错:', error)
} }
} }
const handleClick = async () => { const handleClick = async () => {