lex 1 年之前
父節點
當前提交
cb46b54f61
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 3 1
      src/tenant/music/music-detail/new-index.tsx
  2. 3 1
      src/views/music/music-detail/index.tsx

+ 3 - 1
src/tenant/music/music-detail/new-index.tsx

@@ -888,7 +888,7 @@ export default defineComponent({
                     type="primary"
                     color="linear-gradient(270deg, #FF3C81 0%, #FF76A6 100%)"
                     onClick={() => {
-                      useThrottleFn(() => {
+                      const throttleFn = useThrottleFn(() => {
                         player.value && player.value.stop()
                         const item: any = partColumns.value.find(
                           (c: any) => c.value === staffData.partIndex
@@ -904,6 +904,8 @@ export default defineComponent({
                             route.query.subjectType === 'MUSIC' ? 1 : 0
                         })
                       }, 500)
+
+                      throttleFn()
                     }}
                   >
                     立即练习

+ 3 - 1
src/views/music/music-detail/index.tsx

@@ -993,7 +993,7 @@ export default defineComponent({
                     type="primary"
                     color="linear-gradient(180deg, #59E5D5 0%, #2DC7AA 100%)"
                     onClick={() => {
-                      useThrottleFn(() => {
+                      const throttleFn = useThrottleFn(() => {
                         player.value && player.value.stop()
                         const item: any = partColumns.value.find(
                           (c: any) => c.value === staffData.partIndex
@@ -1006,6 +1006,8 @@ export default defineComponent({
                           sett: staff.radio
                         })
                       }, 500)
+
+                      throttleFn()
                     }}
                   >
                     立即练习