Skip to content

Commit 89c572b

Browse files
committed
@ Fixes a bug about worksheet name.
1 parent 57dd19f commit 89c572b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Json2Excel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
makeExport() {
9696
let name = `${this.filename}${this.counter ? '('+ this.counter++ + ')' : ''}`;
9797
this.workBook.SheetNames = [name];
98-
this.workBook.Sheets.test = this.workSheet;
98+
this.workBook.Sheets[name] = this.workSheet;
9999
100100
xlsx.writeFile(this.workBook, `${name}.xlsx`);
101101
},

0 commit comments

Comments
 (0)