Bläddra i källkod

Merge branch 'iteration-20240829-free'

lex-xin 8 månader sedan
förälder
incheckning
c89b65f7eb
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1 1
      src/tenant/music/personal/practice.tsx
  2. 2 2
      src/views/music/personal/practice.tsx

+ 1 - 1
src/tenant/music/personal/practice.tsx

@@ -17,7 +17,7 @@ export default defineComponent({
     /** 这里条数不会变动,设置固定高度避免抖动 */
     const prevNum = ref(0)
     const songStatus = ref(false)
-    const songItem = ref({})
+    const songItem = ref<any>({})
     const {
       isLoading,
       state: resState,

+ 2 - 2
src/views/music/personal/practice.tsx

@@ -17,7 +17,7 @@ export default defineComponent({
     /** 这里条数不会变动,设置固定高度避免抖动 */
     const prevNum = ref(0)
     const songStatus = ref(false)
-    const songItem = ref({})
+    const songItem = ref<any>({})
     const {
       isLoading,
       state: resState,
@@ -64,7 +64,7 @@ export default defineComponent({
             <Song
               list={list}
               onDetail={(item: any) => {
-                if(item.play === 0) {
+                if(item.play === 1) {
                   songItem.value = item
                   songStatus.value = true
                   return