diff --git a/apps/web/vue3/index.html b/apps/web/vue3/index.html
index c33dcf8c6..71a2efe5e 100644
--- a/apps/web/vue3/index.html
+++ b/apps/web/vue3/index.html
@@ -24565,6 +24565,7 @@ compare: [[flesh, peel]]`;
appendExtensionFiles,
buildLightweightExtensionStage,
lightweightExtensionTestStatus,
+ lightweightUploadProgress,
uploadExtensionWithProgress,
}, event),
handleLightweightExtensionFolderPick: (event) => window.LightWeightExtensionTest && window.LightWeightExtensionTest.handlePick({
@@ -24574,6 +24575,7 @@ compare: [[flesh, peel]]`;
appendExtensionFiles,
buildLightweightExtensionStage,
lightweightExtensionTestStatus,
+ lightweightUploadProgress,
uploadExtensionWithProgress,
}, event),
openLightweightExtensionFolderPicker: () => window.LightWeightExtensionTest && window.LightWeightExtensionTest.openPicker(),
diff --git a/apps/web/vue3/index_ml.html b/apps/web/vue3/index_ml.html
index 4f4862431..78e922879 100644
--- a/apps/web/vue3/index_ml.html
+++ b/apps/web/vue3/index_ml.html
@@ -24401,6 +24401,7 @@ compare: [[flesh, peel]]`;
appendExtensionFiles,
buildLightweightExtensionStage,
lightweightExtensionTestStatus,
+ lightweightUploadProgress,
uploadExtensionWithProgress,
}, event),
handleLightweightExtensionFolderPick: (event) => window.LightWeightExtensionTest && window.LightWeightExtensionTest.handlePick({
@@ -24410,6 +24411,7 @@ compare: [[flesh, peel]]`;
appendExtensionFiles,
buildLightweightExtensionStage,
lightweightExtensionTestStatus,
+ lightweightUploadProgress,
uploadExtensionWithProgress,
}, event),
openLightweightExtensionFolderPicker: () => window.LightWeightExtensionTest && window.LightWeightExtensionTest.openPicker(),
diff --git a/apps/web/vue3/lightWeightExtensionTest.js b/apps/web/vue3/lightWeightExtensionTest.js
index ba835f95d..5732266a3 100644
--- a/apps/web/vue3/lightWeightExtensionTest.js
+++ b/apps/web/vue3/lightWeightExtensionTest.js
@@ -282,12 +282,23 @@
function mountApi() {
window.LightWeightExtensionTest = {
async handleDrop(hooks, event) {
+ const progress = hooks.lightweightUploadProgress;
try {
+ if (progress) {
+ progress.active = true;
+ progress.percent = 0;
+ progress.loaded = 0;
+ progress.total = 0;
+ progress.speed = 0;
+ progress.label = '本地文件读取中';
+ }
+ hooks.lightweightExtensionTestStatus.value = '本地文件读取中...';
const files = await readDroppedFiles(event?.dataTransfer);
await processFolderFiles(hooks, files);
} catch (error) {
const message = `失败:${error.message || '目录处理失败'}`;
hooks.lightweightExtensionTestStatus.value = message;
+ if (progress) progress.active = false;
notifyError(message);
}
},