Skip to content
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

IE浏览器下载文件时文件名出现乱码 #45

Open
LiangYongAI opened this issue Feb 2, 2023 · 1 comment
Open

IE浏览器下载文件时文件名出现乱码 #45

LiangYongAI opened this issue Feb 2, 2023 · 1 comment

Comments

@LiangYongAI
Copy link

版本号:

2.4

问题描述:

IE浏览器下载文件时文件名出现乱码,chrome和edge浏览器功能正常
下载文件是用的jeecgListMixin.vue下面函数
downloadFile(text){
if(!text){
this.$message.warning("未知的文件")
return;
}
if(text.indexOf(",")>0){
text = text.substring(0,text.indexOf(","))
}
let url = getFileAccessHttpUrl(text)
window.open(url);
},

问题截图:

image

请问这是什么原因,谢谢帮忙

@LiangYongAI
Copy link
Author

@zhangdaiscott

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

1 participant