|
@@ -1,4 +1,5 @@
|
|
|
import { useUserStore } from "@/stores/modules/user";
|
|
import { useUserStore } from "@/stores/modules/user";
|
|
|
|
|
+import { useSimpleUploadOverlayStore } from "@/stores/modules/simpleUploadOverlay";
|
|
|
import { ElMessage } from "element-plus";
|
|
import { ElMessage } from "element-plus";
|
|
|
import { AI_UPLOAD_FILES_PUBLIC_BASE, BASE_AI_URL } from "@/utils/config";
|
|
import { AI_UPLOAD_FILES_PUBLIC_BASE, BASE_AI_URL } from "@/utils/config";
|
|
|
import { withSimpleUploadOverlay } from "@/utils/withSimpleUploadOverlay";
|
|
import { withSimpleUploadOverlay } from "@/utils/withSimpleUploadOverlay";
|
|
@@ -441,7 +442,8 @@ export async function uploadFilesToOss(files, _fileType, options = {}) {
|
|
|
|
|
|
|
|
let uploadedUrls;
|
|
let uploadedUrls;
|
|
|
if (skipSimpleUploadOverlay) {
|
|
if (skipSimpleUploadOverlay) {
|
|
|
- uploadedUrls = await runUpload(null);
|
|
|
|
|
|
|
+ const overlaySignal = useSimpleUploadOverlayStore().getActiveAbortSignal?.();
|
|
|
|
|
+ uploadedUrls = await runUpload(overlaySignal ?? null);
|
|
|
} else {
|
|
} else {
|
|
|
uploadedUrls = await withSimpleUploadOverlay(signal => runUpload(signal));
|
|
uploadedUrls = await withSimpleUploadOverlay(signal => runUpload(signal));
|
|
|
}
|
|
}
|