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

fix: fix env check & encode bug #109

Merged
merged 1 commit into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/config/explore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,9 @@ export const downloadCSVFiles = ({ headers, tables, title }) => {
navigator.msSaveBlob(csvData, `test.csv`);
} else {
// Non-Internet Explorer
const csvContent = 'data:text/csv;charset=utf-8,\uFEFF' + result;
// Use the download property of the A tag to implement the download function
const link = document.createElement('a');
link.href = encodeURI(csvContent);
link.href = 'data:text/csv;charset=utf-8,\uFEFF' + encodeURIComponent(result);
link.download = `${title}.csv`;
document.body.appendChild(link);
link.click();
Expand Down
6 changes: 1 addition & 5 deletions scripts/rpm/preinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@
if ! type "lsof" > /dev/null; then
echo -e "\e[31mInstall failed for the reason: the command lsof required\e[0m"
exit 1
fi
if ! type "node" > /dev/null; then
echo -e "\e[31mInstall failed for the reason: the nodejs(>v10.16.0) required\e[0m"
exit 1
fi
fi