mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-31 05:10:45 +08:00
feat: 优化SSE连接延迟,添加初始化状态提示
This commit is contained in:
@@ -127,7 +127,7 @@ const progressSSE = useProgressSSE(
|
||||
`${import.meta.env.VITE_API_BASE_URL}system/progress/filetransfer`,
|
||||
handleProgressMessage,
|
||||
'transfer-queue-progress',
|
||||
progressActive
|
||||
progressActive,
|
||||
)
|
||||
|
||||
// 使用SSE监听加载进度
|
||||
@@ -166,6 +166,7 @@ onUnmounted(() => {
|
||||
:value="progressValue"
|
||||
color="primary"
|
||||
indeterminate
|
||||
:height="2"
|
||||
/>
|
||||
<VCardItem v-if="dataList.length > 0 && progressValue > 0" class="text-center pt-2">
|
||||
<span class="text-sm">{{ progressText }}</span>
|
||||
|
||||
Reference in New Issue
Block a user