mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 00:29:19 +08:00
refactor: 统一文件存储与上传流程,解耦 OSS 客户端、存储类型与前端上传模式
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user