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

pull/1155/head
lyswhut 2023-01-11 10:53:17 +08:00
parent 9cc36e2a6a
commit cb9fa62dac
2 changed files with 2 additions and 1 deletions

View File

@ -2,3 +2,4 @@
### 修复
- 修复备份文件导入指引无法识别v2配置的问题
- 修复从搜索界面进入歌单详情后,若启用强迫症设置的清空功能会导致意外清空搜索框、搜索列表的问题

View File

@ -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('')