Explorar el Código

Merge branch 'iteration-temp-http' into staging

lex-xin hace 8 meses
padre
commit
368b7578c2
Se han modificado 1 ficheros con 10 adiciones y 2 borrados
  1. 10 2
      src/views/cloudPractice/cloudPractice.tsx

+ 10 - 2
src/views/cloudPractice/cloudPractice.tsx

@@ -548,6 +548,11 @@ export default defineComponent({
                   sysMusicScoreCategoriesList: item.sysMusicScoreCategoriesList || []
                }
             })
+
+            state.categoryId = null
+            state.categoryName = null
+            state.levelId = null
+            state.typeId = -1
          }
          if (state.categoryList.length > 0 && !["level", "type"].includes(type as any)) {
             let result: any = []
@@ -608,6 +613,8 @@ export default defineComponent({
                   musicSheetCategoriesList: item.musicSheetCategoriesList || []
                }
             })
+            state.levelId = null
+            state.typeId = -1
          }
 
          if (state.levelList.length > 0) {
@@ -679,6 +686,7 @@ export default defineComponent({
       }
 
       const handleGetList = async () => {
+         if (loading.value) return
          state.listActive = 0
          state.showPlayer = false
          state.playState = "pause"
@@ -1017,7 +1025,7 @@ export default defineComponent({
                            ))}
 
                            {!state.list.length && !loading.value && (
-                              <ElEmpty class={styles.empty} image={require("@/img/layout/empty.png")} description="暂无结果" />
+                              <ElEmpty class={styles.empty} image={require("@/img/layout/empty.png")} description="暂无内容" />
                            )}
 
                            <div ref={spinRef} class={[styles.loadingWrap, state.finshed && styles.showLoading]}>
@@ -1050,7 +1058,7 @@ export default defineComponent({
                         )}
 
                         {!loading.value && !activeItem.value?.id && (
-                           <ElEmpty class={styles.empty} image={require("@/img/layout/empty.png")} description="暂无结果" />
+                           <ElEmpty class={styles.empty} image={require("@/img/layout/empty.png")} description="暂无内容" />
                         )}
                      </div>
                   </NSpin>