Skip to content

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

@alu4r

Description

@alu4r
版本号:

V2.1.3

问题描述:

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

截图&代码:

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

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

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

Activity

zhangdaiscott

zhangdaiscott commented on Jan 8, 2020

@zhangdaiscott
Member

3Q

zhangdaiscott

zhangdaiscott commented on Jan 12, 2020

@zhangdaiscott
Member

已经修改,下个版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @zhangdaiscott@alu4r

        Issue actions

          前端Excel导出文件为TXT格式 · Issue #881 · jeecgboot/JeecgBoot