diff --git a/.gitignore b/.gitignore index 14c4b9b..aa6f402 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ npm-debug.log node_modules -package-lock.json \ No newline at end of file +package-lock.json + +.history \ No newline at end of file diff --git a/JsonExcel.vue b/JsonExcel.vue index fd04dd4..f395e24 100644 --- a/JsonExcel.vue +++ b/JsonExcel.vue @@ -103,6 +103,7 @@ export default { if (typeof this.fetch === "function" || !data) data = await this.fetch(); if (!data || !data.length) { + if (typeof this.beforeFinish === "function") await this.beforeFinish(); return; }