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 +++++- 1 files changed, 5 insertions(+), 1 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 = { -- Gitblit v1.9.3