瀏覽代碼

我的乐团下拉加载,不收起

skyblued 2 年之前
父節點
當前提交
3d28edf41f
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/mine-orchestra/index.tsx

+ 4 - 1
src/views/mine-orchestra/index.tsx

@@ -42,6 +42,9 @@ export default defineComponent({
           modelData.orchestra = data.orchestraList[0] || {}
         }
       })
+      setTimeout(() => {
+        data.loading = false
+      }, 300)
     }
     const getOrchestras = async () => {
       data.loading = true
@@ -129,7 +132,7 @@ export default defineComponent({
               }}
             </Cell>
           </CellGroup>
-          {!!data.orchestraList.length && (
+          {!data.loading && !!data.orchestraList.length && (
             <Tabs
               v-model:active={tabActive.value}
               class={styles.tabs}