@@ -268,9 +268,10 @@ export default defineComponent({
state.finshed = false;
state.reshing = true;
state.list = [];
- getList();
-
- __initSpin();
+ if(musicalInstrumentId.value) {
+ getList();
+ __initSpin();
+ }
}}
v-slots={{
suffix: () => (
@@ -160,6 +160,13 @@ export default defineComponent({
}
);
+ watch(() => props.type, () => {
+ if(!props.musicalInstrumentId) {
+ formatFirstSubject();
+ onSearch()
+ })
+
// 是否显示声部
const isShowInstrument = computed(() => {
if (props.type) {