feat(short-drama-agent-front): 完善镜头定位与项目配置
This commit is contained in:
1 parent
470b52e26d
commit
5b134207b8
66 files changed
+2042
-984
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { usePolling } from '../../composables/usePolling'
|
||||
import { visualStyleApi } from '../visual-style'
|
||||
import { useProjectGenerationRevision } from '../generation-config/context'
|
||||
import { generationConfigApi } from '../generation-config/api'
|
||||
import { subjectImagesApi } from '../subject-images/api'
|
||||
import { hasRunningImages } from '../subject-images/model'
|
||||
@@ -35,7 +36,7 @@ export function useSubjectIdentity() {
|
||||
const concurrency = ref(3)
|
||||
const candidateLimit = ref(3)
|
||||
const force = ref(false)
|
||||
/** 目录与身份已有刷新按钮,查询只在进入、切换和手动刷新时读取。 */
|
||||
/** 主体与模型查询只在进入、切换和自身操作完成后读取。 */
|
||||
const generationModelsQuery = usePolling(
|
||||
projectId,
|
||||
async (_id, signal) => generationConfigApi.catalog(signal),
|
||||
@@ -67,9 +68,17 @@ export function useSubjectIdentity() {
|
||||
},
|
||||
false
|
||||
)
|
||||
/** 全局配置成功保存后重新读取主体生图的实际默认参数。 */
|
||||
const generationRevision = useProjectGenerationRevision()
|
||||
/** 配置查询按当前项目和修订号隔离。 */
|
||||
const profileKey = computed(() => JSON.stringify([projectId.value, generationRevision.value]))
|
||||
/** 主体身份使用保存后的正式项目配置。 */
|
||||
const profileQuery = usePolling(
|
||||
projectId,
|
||||
async (id, signal) => ({ profile: await generationConfigApi.profile(id, signal) }),
|
||||
profileKey,
|
||||
async (key, signal) => {
|
||||
const [id] = JSON.parse(key) as [string, number]
|
||||
return { profile: await generationConfigApi.profile(id, signal) }
|
||||
},
|
||||
false
|
||||
)
|
||||
const castingQuery = usePolling(
|
||||
|
||||
Reference in new issue
Block a user