Explorar el Código

修复数据显示问题

lex hace 1 año
padre
commit
00fb17583d
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/tenant/music/train-list/index.tsx

+ 3 - 0
src/tenant/music/train-list/index.tsx

@@ -85,6 +85,9 @@ export default defineComponent({
             data: tempParams
           }
         )
+        if (data.value?.rows?.length > 0 && res.data.pageNo === 1) {
+          return
+        }
         if (data.value) {
           const result = (data.value?.rows || []).concat(res.data.rows || [])
           data.value.rows = result