fix: 修正形态图库动态轮询初始化

This commit is contained in:
GouJ committed 2026-09-25 00:49:34 +08:00
1 parent 7432c964b1
commit 76dabe67e2
1 file changed
+3 -4
@@ -34,10 +34,9 @@ export function useSubjectImages() {
async (projectId, signal) => ({ profile: await generationConfigApi.profile(projectId, signal) }),
false
)
const pollInterval = computed(() =>
queryDataHasRunningImages(query.data.value) ? 4000 : false
)
const query = usePolling(
let query!: ReturnType<typeof usePolling<Awaited<ReturnType<typeof subjectImagesApi.listForms>>>>
const pollInterval = computed(() => queryDataHasRunningImages(query?.data.value ?? null) ? 4000 : false)
query = usePolling(
id,
async (projectId, signal) => {
if (!projectId) return []