refactor: 统一文件存储与上传流程,解耦 OSS 客户端、存储类型与前端上传模式

This commit is contained in:
2026-08-25 00:00:19 +08:00
parent 78dbc865fd
commit 81358e6d7c
57 changed files with 776 additions and 672 deletions
@@ -3,6 +3,7 @@ import type { PageQueryDTO } from '#/types/common';
import { computed, ref } from 'vue';
import { useAccessStore } from '@vben/stores';
import { defineStore } from 'pinia';
import { getImportTaskPageApi } from '#/api/ec/import/task';
@@ -114,7 +115,11 @@ export const useImportTaskStore = defineStore('import-task', () => {
unsubAllDone = null;
}
/** 登录后才拉任务列表并订阅 SSE */
async function init() {
if (!useAccessStore().accessToken) {
return;
}
subscribeRealtime();
await fetchTasks(true);
}