Ver código fonte

Merge branch '123'

liushengqiang 1 ano atrás
pai
commit
960cd0cccc
2 arquivos alterados com 5 adições e 3 exclusões
  1. 2 2
      src/pc/home/component/file-btn/index.tsx
  2. 3 1
      src/pc/home/index.tsx

+ 2 - 2
src/pc/home/component/file-btn/index.tsx

@@ -48,12 +48,12 @@ export default defineComponent({
 					</div>
 				),
 				key: "import",
-				// disabled: true,
+				disabled: true,
 				children: [
 					{
 						label: "XML",
 						key: "xml",
-						// disabled: true,
+						disabled: true,
 					},
 				],
 			},

+ 3 - 1
src/pc/home/index.tsx

@@ -336,7 +336,9 @@ export default defineComponent({
 						const totalTime = (abcData.synthControl as any).visualObj.getTotalTime();
 						if (totalTime) {
 							const progress = startTime / 1000 / totalTime;
-							(abcData.synthControl as any).seek(progress);
+							nextTick(() => {
+								(abcData.synthControl as any).seek(progress);
+							})
 							return;
 						}
 					}