diff --git a/frontend/src/api/tus.ts b/frontend/src/api/tus.ts index 6060a4f7..dd824357 100644 --- a/frontend/src/api/tus.ts +++ b/frontend/src/api/tus.ts @@ -52,6 +52,7 @@ export async function upload( } delete CURRENT_UPLOAD_LIST[filePath]; reject(new Error(`Upload failed: ${error.message}`)); + }, onProgress: function (bytesUploaded) { const fileData = CURRENT_UPLOAD_LIST[filePath]; fileData.currentBytesUploaded = bytesUploaded; diff --git a/frontend/src/main.ts b/frontend/src/main.ts index eaafb6bd..303bae9c 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -31,7 +31,7 @@ const vfm = createVfm(); const app = createApp(App); -app.component(VueNumberInput.name, VueNumberInput); +app.component(VueNumberInput.name || "vue-number-input", VueNumberInput); app.use(VueLazyload); app.use(Toast, { transition: "Vue-Toastification__bounce",