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) }), async (projectId, signal) => ({ profile: await generationConfigApi.profile(projectId, signal) }),
false false
) )
const pollInterval = computed(() => let query!: ReturnType<typeof usePolling<Awaited<ReturnType<typeof subjectImagesApi.listForms>>>>
queryDataHasRunningImages(query.data.value) ? 4000 : false const pollInterval = computed(() => queryDataHasRunningImages(query?.data.value ?? null) ? 4000 : false)
) query = usePolling(
const query = usePolling(
id, id,
async (projectId, signal) => { async (projectId, signal) => {
if (!projectId) return [] if (!projectId) return []