Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
曹佳豪 committed Nov 21, 2023
2 parents b30cb76 + e9ad8f7 commit 247dea8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DataWorkerBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ async function loadData() {
2. You need to generate data according to the Markdown syntax, because the resulting result will be rendered as a Markdown table.
3. Generate 10-20 pieces of data at a time.
4. Remember, don't use the \`\`\` tag outside of Markdown Table code anymore!
5. All columns should be merged into one table.
The data you generate should be such as:
Expand Down Expand Up @@ -345,7 +346,7 @@ function downloadDataToCSV() {
}
try {
const csvData = convertMarkdownTableContentToCSV(dataSourceData.value)
const blob = new Blob([csvData], { type: 'text/csv;charset=utf-8;' })
const blob = new Blob([`\uFEFF${csvData}`], { type: 'text/csv;charset=utf-8;' })
const url = URL.createObjectURL(blob)
const link = document.createElement('a')
link.setAttribute('href', url)
Expand Down

1 comment on commit 247dea8

@vercel
Copy link

@vercel vercel bot commented on 247dea8 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.