From 0852ecfb40348d69bf6696e815856556182ef85c Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 16 Apr 2019 15:59:39 +0800 Subject: [PATCH] $('.webSSHTimer').html(moment(this.timeRemain).format('mm:ss')) --- public/react/src/modules/page/component/WebSSHTimer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/react/src/modules/page/component/WebSSHTimer.js b/public/react/src/modules/page/component/WebSSHTimer.js index 2cd25b34..6efd2009 100644 --- a/public/react/src/modules/page/component/WebSSHTimer.js +++ b/public/react/src/modules/page/component/WebSSHTimer.js @@ -76,6 +76,7 @@ class WebSSHTimer extends Component { if (this.startTimeRemain === 0) { // 重置主倒计时时长:20分钟 this.timeRemain = 20 * 60 * 1000; + $('.webSSHTimer').html(moment(this.timeRemain).format('mm:ss')) this.forceUpdate() } return;