lex-xin hace 7 meses
padre
commit
bd51edfb7f

+ 4 - 3
src/views/xiaoku-list/detail.tsx

@@ -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: () => (

+ 7 - 0
src/views/xiaoku-list/search-group-resources.tsx

@@ -160,6 +160,13 @@ export default defineComponent({
       }
     );
 
+    watch(() => props.type, () => {
+      if(!props.musicalInstrumentId) {
+        formatFirstSubject();
+        onSearch()
+      }
+    })
+
     // 是否显示声部
     const isShowInstrument = computed(() => {
       if (props.type) {