mirror of
https://github.com/lanyeeee/bilibili-video-downloader.git
synced 2026-09-09 01:27:27 +08:00
fix: 修复使用season_id搜索时,panel的状态未重置的问题
This commit is contained in:
@@ -104,6 +104,11 @@ watch(
|
|||||||
async () => {
|
async () => {
|
||||||
const episode = props.bangumiResult.ep
|
const episode = props.bangumiResult.ep
|
||||||
if (episode === null) {
|
if (episode === null) {
|
||||||
|
currentTabIndex.value = 0
|
||||||
|
selectedIds.value.clear()
|
||||||
|
checkedIds.value.clear()
|
||||||
|
selectionAreaRef.value?.selection?.clearSelection()
|
||||||
|
selectionAreaRef.value?.$el.scrollTo({ top: 0, behavior: 'instant' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,10 @@ watch(
|
|||||||
async () => {
|
async () => {
|
||||||
const ep = props.cheeseResult.ep
|
const ep = props.cheeseResult.ep
|
||||||
if (ep === null) {
|
if (ep === null) {
|
||||||
|
selectedIds.value.clear()
|
||||||
|
checkedIds.value.clear()
|
||||||
|
selectionAreaRef.value?.selection?.clearSelection()
|
||||||
|
selectionAreaRef.value?.$el.scrollTo({ top: 0, behavior: 'instant' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
selectedIds.value = new Set([ep.id])
|
selectedIds.value = new Set([ep.id])
|
||||||
|
|||||||
Reference in New Issue
Block a user