liushengqiang hace 1 año
padre
commit
7a62ad77cf
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      src/pc/home/index.tsx

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

@@ -477,6 +477,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);