@nebulars/sseengine 1.3.60 → 1.3.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -142,14 +142,17 @@ export default {
|
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
144
|
|
|
145
|
-
mounted() {
|
|
145
|
+
async mounted() {
|
|
146
146
|
document.addEventListener('click', this.supHandler);
|
|
147
147
|
document.addEventListener('click', this.tubHandler);
|
|
148
148
|
},
|
|
149
149
|
|
|
150
|
-
beforeUnmount() {
|
|
150
|
+
async beforeUnmount() {
|
|
151
151
|
document.removeEventListener('click', this.supHandler);
|
|
152
152
|
document.removeEventListener('click', this.tubHandler);
|
|
153
|
+
|
|
154
|
+
await this.$store.dispatch('sseengine/SSE_MODE');
|
|
155
|
+
await this.$store.dispatch('sseengine/SNAP_CLEAN');
|
|
153
156
|
},
|
|
154
157
|
};
|
|
155
158
|
</script>
|
package/src/store/tub.js
CHANGED
|
@@ -39,7 +39,7 @@ export default ({ http, closest, copy, toimg, download, excel, toast, $ }) => {
|
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
41
|
|
|
42
|
-
async TUB_DOWNLOAD({ dispatch }, { markdown, table }) {
|
|
42
|
+
async TUB_DOWNLOAD({ state, dispatch }, { markdown, table }) {
|
|
43
43
|
// Get TSV
|
|
44
44
|
const tsv = await dispatch('TSV_CREATE', { markdown, sup: false });
|
|
45
45
|
|
|
@@ -65,7 +65,8 @@ export default ({ http, closest, copy, toimg, download, excel, toast, $ }) => {
|
|
|
65
65
|
const answer = closest(table, '[answer-id]', true).getAttribute('answer-id');
|
|
66
66
|
|
|
67
67
|
// Write Excel
|
|
68
|
-
excel.writeFile(book, `${answer}.xlsx`);
|
|
68
|
+
// excel.writeFile(book, `${answer}.xlsx`);
|
|
69
|
+
excel.writeFile(book, `${state.info.title}.xlsx`);
|
|
69
70
|
},
|
|
70
71
|
|
|
71
72
|
async TSV_CREATE({}, { markdown, sup }) {
|