|
@@ -40,9 +40,15 @@ export default defineComponent({
|
|
|
if (route.path === '/music-songbook/search') {
|
|
|
keyword.value = ''
|
|
|
tagids.value = ''
|
|
|
+ activeTab.value = 'songe'
|
|
|
// console.log('onBeforeRouteUpdate')
|
|
|
- selectTagRef.value.resetTags()
|
|
|
+ try {
|
|
|
+ selectTagRef.value?.resetTags?.()
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
}
|
|
|
+ return true
|
|
|
})
|
|
|
|
|
|
watch(activeTab, val => {
|