From 2e5874cdf1481d833a85fee748f6bf66ba20e207 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Thu, 30 Sep 2021 09:06:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E6=8C=89=E9=92=AE=E5=AF=BC=E8=87=B4dom?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dom.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dom.js b/src/dom.js index ed112b1..eb1dfe0 100644 --- a/src/dom.js +++ b/src/dom.js @@ -1,4 +1,5 @@ // DEBUG: 该文件仅适用于测试调试程序 正式版删除 + import { sendMessage } from './frame'; // 事件功能按钮 绑定动作 发送消息 @@ -63,17 +64,14 @@ export function setPauseButtonStatus(type) { export function changeButtonsDisplay(eventType) { const start = $id('start'); const pause = $id('pause'); - const finish = $id('finish'); const actionContainer = $id('action-container') if (eventType === 'start') { // 点了开始 start.classList.add('d-none'); pause.classList.remove('d-none'); - finish.classList.remove('d-none'); actionContainer.classList.remove('d-none'); } else if (eventType === 'finish') { start.classList.remove('d-none'); pause.classList.add('d-none'); - finish.classList.add('d-none'); actionContainer.classList.add('d-none'); } else if ((eventType === 'pause')) { actionContainer.classList.add('d-none');