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);