mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-21 07:33:49 +08:00
fix: refresh transfer history on activation
This commit is contained in:
@@ -227,6 +227,9 @@ const progressValue = ref(0)
|
||||
// 是否已刷新
|
||||
const isRefreshed = ref(false)
|
||||
|
||||
// 是否已完成首次激活
|
||||
const hasActivatedOnce = ref(false)
|
||||
|
||||
// 删除确认对话框
|
||||
const deleteConfirmDialog = ref(false)
|
||||
|
||||
@@ -751,6 +754,17 @@ onMounted(() => {
|
||||
fetchData()
|
||||
})
|
||||
|
||||
onActivated(() => {
|
||||
if (!hasActivatedOnce.value) {
|
||||
hasActivatedOnce.value = true
|
||||
return
|
||||
}
|
||||
|
||||
if (!loading.value) {
|
||||
fetchData()
|
||||
}
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
stopAiRedoProgress()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user