From d8d0e602b9c3ddc5efa9ed908eb0b6e98cba84c7 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Wed, 17 Jan 2024 17:48:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=8A=B6=E6=80=81=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homePage/index.vue | 7 ++++++- src/views/report/index.vue | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/homePage/index.vue b/src/views/homePage/index.vue index b02de57..e0b4823 100644 --- a/src/views/homePage/index.vue +++ b/src/views/homePage/index.vue @@ -554,7 +554,11 @@ export default { towerId: 0, isonline: -1, protocolId: 0, - activityId: 0, + activityId: + JSON.parse(localStorage.getItem("activeId")) !== null + ? JSON.parse(localStorage.getItem("activeId")) + : 0, + ismntend: 1, oidInput: "", oidCheck: 0, cmdidInput: "", @@ -564,6 +568,7 @@ export default { versionInput: "", versionCheck: 0, }; + this.onSubmit(); }, //展开收起 diff --git a/src/views/report/index.vue b/src/views/report/index.vue index 87cdc57..eab01e3 100644 --- a/src/views/report/index.vue +++ b/src/views/report/index.vue @@ -220,6 +220,7 @@ export default { methods: { startCountdown() { + this.newupdatatime = new Date().getTime(); // 更新当前时间 // 清空之前可能存在的定时器 if (this.intervalId) { clearInterval(this.intervalId); @@ -237,7 +238,6 @@ export default { // 更新时间尚未设置,返回默认的倒计时时间或者不执行任何操作 return "计算中..."; } - const estimatedPublishTime = item.estimatedPublishTime * 1000; const difference = estimatedPublishTime - this.newupdatatime; const minutes = Math.floor(difference / 60000);