ソースを参照

学生端云教练-曲谱列表:首次进入未传musicSheetCategoriesId

liushengqiang 2 年 前
コミット
ee88a75422
1 ファイル変更7 行追加2 行削除
  1. 7 2
      src/views/accompany/music-list.tsx

+ 7 - 2
src/views/accompany/music-list.tsx

@@ -61,7 +61,9 @@ export default defineComponent({
         if (Array.isArray(res?.data)) {
           data.musicTree = res.data
         }
-        getList()
+        nextTick(() => {
+          getList()
+        })
       } catch (error) {
         console.log(error)
       }
@@ -175,7 +177,10 @@ export default defineComponent({
               <DropdownItem
                 v-model:modelValue={data.value1}
                 options={option1.value}
-                onChange={() => onSearch()}
+                onChange={(val: any) => {
+                  data.value2 = null
+                  onSearch()
+                }}
               ></DropdownItem>
               <DropdownItem
                 v-model:modelValue={data.value2}