This commit is contained in:
IndieKKY
2024-10-06 13:33:07 +08:00
parent 6a921d4c5a
commit b690a7ef08
7 changed files with 26 additions and 26 deletions

View File

@@ -21,7 +21,7 @@ import {useAsyncEffect, useInterval} from 'ahooks'
import {getModelMaxTokens, getWholeText} from '../utils/biz_util'
import {MESSAGE_TO_INJECT_GET_SUBTITLE} from '../consts/const'
import useMessage from '../messaging/layer2/useMessage'
import { injectWaiter } from '@/messaging/layer2/useMessageService'
import { msgWaiter } from '@/messaging/layer2/useMessageService'
/**
* Service是单例类似后端的服务概念
@@ -95,7 +95,7 @@ const useSubtitleService = () => {
useAsyncEffect(async () => {
// 等待inject准备好
await injectWaiter.wait()
await msgWaiter.wait()
// 初始获取列表
sendInject(MESSAGE_TO_INJECT_REFRESH_VIDEO_INFO, {force: true})
// 初始获取设置信息