commit fix bugs

This commit is contained in:
dalia.florinda
2025-12-19 10:01:43 +01:00
parent af8a8b67c3
commit 9c254c9c28
6 changed files with 40 additions and 19 deletions

View File

@@ -610,7 +610,7 @@ export default {
// Add global functions for table operations
if (!window.copyTable) {
window.copyTable = (tableId) => {
const wrapper = markdownContainer.value.querySelector(`[data-table-id="${tableId}"]`);
const wrapper = document.querySelector(`[data-table-id="${tableId}"]`);
const table = wrapper?.querySelector('table');
if (!table) return;
@@ -637,7 +637,7 @@ export default {
if (!window.exportTableToCSV) {
window.exportTableToCSV = (tableId) => {
const wrapper = markdownContainer.value.querySelector(`[data-table-id="${tableId}"]`);
const wrapper = document.querySelector(`[data-table-id="${tableId}"]`);
const table = wrapper?.querySelector('table');
if (!table) return;
@@ -656,7 +656,9 @@ export default {
csv += rowData.join(',') + '\n';
});
const blob = new Blob([csv], { type: 'text/csv' });
// Add UTF-8 BOM for proper character encoding
const BOM = '\uFEFF';
const blob = new Blob([BOM + csv], { type: 'text/csv;charset=utf-8;' });
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;

View File

@@ -158,7 +158,7 @@ const formatSize = (bytes) => {
</label>
<div>
<FileUpload
:name="inputName"
name="MultiFileUpload"
:customUpload="false"
:url="uploadUrl"
@upload="handleUpload"