Skip to content

前端Excel导出文件为TXT格式 #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alu4r opened this issue Jan 7, 2020 · 2 comments
Closed

前端Excel导出文件为TXT格式 #881

alu4r opened this issue Jan 7, 2020 · 2 comments

Comments

@alu4r
Copy link

alu4r commented Jan 7, 2020

版本号:

V2.1.3

问题描述:

谷歌浏览器导出Excel时,发现导出文件为TXT格式。(我的谷歌浏览器有安装下载管理器的插件)
定位代码到JeecgListMixin.js中handleExportXls方法。

截图&代码:

image
前端debug发现Blob对象的类型为text/xml:
image

后端已经指定了类型,不知道为什么前端类型是这个。可能是我安装了插件的原因吧。
建议前端也指定一下类型:
image
遇到这个问题的同学希望对你有帮助!

友情提示: 未按格式要求发帖,会直接删掉。

@zhangdaiscott
Copy link
Member

3Q

@zhangdaiscott
Copy link
Member

已经修改,下个版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants