|
@@ -3,8 +3,7 @@ import {
|
|
|
RouterView,
|
|
|
useRouter,
|
|
|
useRoute,
|
|
|
- onBeforeRouteUpdate,
|
|
|
- onBeforeRouteLeave
|
|
|
+ onBeforeRouteUpdate
|
|
|
} from 'vue-router'
|
|
|
import { defineComponent, onMounted, reactive, ref, watch } from 'vue'
|
|
|
import mitt from 'mitt'
|
|
@@ -37,6 +36,8 @@ export default defineComponent({
|
|
|
if (route.path === '/music-songbook/search') {
|
|
|
keyword.value = ''
|
|
|
tagids.value = ''
|
|
|
+ subject.name = '全部'
|
|
|
+ subject.id = ''
|
|
|
activeTab.value = 'songe'
|
|
|
try {
|
|
|
selectTagRef.value?.resetTags?.()
|
|
@@ -104,6 +105,22 @@ export default defineComponent({
|
|
|
})
|
|
|
}
|
|
|
}}
|
|
|
+ v-slots={{
|
|
|
+ left: () => (
|
|
|
+ <div
|
|
|
+ class={styles.label}
|
|
|
+ onClick={() => (subject.show = true)}
|
|
|
+ >
|
|
|
+ {subject.name}
|
|
|
+ <Icon
|
|
|
+ classPrefix="iconfont"
|
|
|
+ name="down"
|
|
|
+ size={12}
|
|
|
+ color="#333"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+ }}
|
|
|
/>
|
|
|
{route.path === '/music-songbook/search' && (
|
|
|
<Tabs
|