lex hai 11 meses
pai
achega
21f7c2f630

+ 2 - 0
src/views/tempo-practice/index.tsx

@@ -134,6 +134,7 @@ export default defineComponent({
     const handlePlay = async () => {
       const playState = getSettingValue('playState');
       const playType = getSettingValue('playType');
+
       if (playState === 'pause') {
         updateSettingValue('playState', 'play');
         if (playType === 'beat') {
@@ -390,6 +391,7 @@ export default defineComponent({
                               part.forEach((child: any, cj: number) => {
                                 if (i === ci && jIndex === cj) {
                                   child.url = dropItem.url;
+                                  child.index = dropItem.index;
                                 }
                               });
                             }

+ 1 - 1
src/views/tempo-practice/setting-modal/index.tsx

@@ -99,7 +99,7 @@ export default defineComponent({
         part.forEach((child: any) => {
           if (child.selected) {
             child.url = getBeatUrl(item);
-
+            child.index = item;
             child.selected = false;
           }
         });