Преглед изворни кода

Merge branch 'iteration-1.0.3'

liushengqiang пре 1 година
родитељ
комит
39107e2e79
1 измењених фајлова са 7 додато и 0 уклоњено
  1. 7 0
      src/pc/home/index.tsx

+ 7 - 0
src/pc/home/index.tsx

@@ -478,6 +478,13 @@ export default defineComponent({
      * @param isProduct 是否是生成曲谱
      */
     const handleResetRender = () => {
+      if(data.drawCount > 0){
+        abcData.synthControl.disable(true);
+        if (data.playState) {
+          data.playState = false;
+        }
+      }
+      
       return new Promise((resolve) => {
         nextTick(() => {
           data.music = renderMeasures(abcData.abc);