fix: reset table data

This commit is contained in:
hlw 2020-07-12 21:54:41 +08:00
parent b563450e46
commit 47847aabc4

View File

@ -106,8 +106,10 @@ export default {
table += currRow.join("|"); table += currRow.join("|");
table += "|\n"; table += "|\n";
} }
this.tableData = {};
this.editor.replaceSelection(`\n${table}\n`, cursor); this.rowNum = 1;
this.colNum = 1;
this.editor.replaceSelection(`\n${table}\n`, "end");
this.$emit("close"); this.$emit("close");
this.editorRefresh(); this.editorRefresh();
}, },