修复从搜索界面进入歌单详情后,若启用强迫症设置的清空功能会导致意外清空搜索框、搜索列表的问题

This commit is contained in:
lyswhut
2023-01-11 10:53:17 +08:00
parent 9cc36e2a6a
commit cb9fa62dac
2 changed files with 2 additions and 1 deletions
@@ -28,7 +28,7 @@ export default {
const router = useRouter()
watch(() => route.name, (newValue, oldValue) => {
if (oldValue == 'Search') {
if (oldValue == 'Search' && newValue != 'SongListDetail') {
setTimeout(() => {
if (appSetting['odc.isAutoClearSearchInput'] && searchText.value) searchText.value = ''
if (appSetting['odc.isAutoClearSearchList']) setSearchText('')