feat: 按资源唤醒任务
This commit is contained in:
parent
b9681322b6
commit
d98c8d17d9
|
|
@ -1,3 +1,3 @@
|
|||
# 开发环境 — 留空,走 vite.config.ts 中的 proxy
|
||||
VITE_API_BASE=https://sit-api.baoshi56.com
|
||||
VITE_API_BASE=http://localhost:8114
|
||||
VITE_ENTRY_OPTIONS=ops,monitor
|
||||
|
|
|
|||
|
|
@ -607,7 +607,8 @@ const activeScenario = ref<CallbackScenario | null>(null)
|
|||
const callbackForm = ref<Record<string, unknown>>({})
|
||||
|
||||
function canMockCallback(task: TaskVO): boolean {
|
||||
if (task.status !== 'CREATED' && task.status !== 'IN_PROGRESS') return false
|
||||
const mockableStatuses = ['CREATED', 'IN_PROGRESS', 'FAILED']
|
||||
if (!mockableStatuses.includes(task.status)) return false
|
||||
return !!callbackScenarioMap[task.type]?.length
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue