From 17d224a823e7342f82856d4baf9f73bdf813a3ea Mon Sep 17 00:00:00 2001
From: shishuaikang <280848880@qq.com>
Date: 星期五, 01 十二月 2023 09:32:56 +0800
Subject: [PATCH] h5页面定时器改1分钟
---
web/src/views/MixingInfo/mixRatio.vue | 6 +++++-
web/src/views/MixingInfo/mixing.vue | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/web/src/views/MixingInfo/mixRatio.vue b/web/src/views/MixingInfo/mixRatio.vue
index 0662aa1..075a28a 100644
--- a/web/src/views/MixingInfo/mixRatio.vue
+++ b/web/src/views/MixingInfo/mixRatio.vue
@@ -45,7 +45,7 @@
fn()
return fn
})(),
- 1000 * 60 * 5
+ 1000 * 60 * 1
)
if (Vue) {
Vue.$once('hook:beforeDestroy', function () {
@@ -98,6 +98,10 @@
$html.style.fontSize = `${fontsize}px`
}
},
+ beforeDestroy() {
+ let $html = document.getElementsByTagName('html')[0]
+ $html.style.fontSize = ''
+ },
methods: {
async getLists() {
const params = {
diff --git a/web/src/views/MixingInfo/mixing.vue b/web/src/views/MixingInfo/mixing.vue
index ce3481b..55d42a7 100644
--- a/web/src/views/MixingInfo/mixing.vue
+++ b/web/src/views/MixingInfo/mixing.vue
@@ -46,7 +46,7 @@
fn()
return fn
})(),
- 1000 * 60 * 5
+ 1000 * 60 * 1
)
if (Vue) {
Vue.$once('hook:beforeDestroy', function () {
@@ -100,6 +100,10 @@
$html.style.fontSize = `${fontsize}px`
}
},
+ beforeDestroy() {
+ let $html = document.getElementsByTagName('html')[0]
+ $html.style.fontSize = ''
+ },
methods: {
getLists() {
const percentArr = Object.keys(this.percents)
--
Gitblit v1.9.3