From bf33927bd42559f7eea75bb8cf3695578291dade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=AC=E9=8B=86=E5=B1=BE?= <804461479@qq.com> Date: Thu, 31 Aug 2023 14:58:37 +0800 Subject: [PATCH] tui --- .../views/thePlatformIsSet/setPlatformes.vue | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/portal-manager-ui/admin/src/views/thePlatformIsSet/setPlatformes.vue b/portal-manager-ui/admin/src/views/thePlatformIsSet/setPlatformes.vue index 7ea9c3e3..b31a757d 100644 --- a/portal-manager-ui/admin/src/views/thePlatformIsSet/setPlatformes.vue +++ b/portal-manager-ui/admin/src/views/thePlatformIsSet/setPlatformes.vue @@ -1942,14 +1942,17 @@ class RollEventComp { index += 0.004; data.cb(index); if (index >= 0.43) { - document.getElementsByClassName( - "effect-box" - )[0].style.backgroundColor = `rgba(3, 18, 51, ${0 ? 0 : 0.5 - index})`; + document.getElementsByClassName("effect-box")[0] + ? (document.getElementsByClassName( + "effect-box" + )[0].style.backgroundColor = `rgba(3, 18, 51, ${ + 0 ? 0 : 0.5 - index + })`) + : ""; } if (index > 1) { clearInterval(set); } - console.log(index); }); // window.addEventListener("scroll", (event) => { // const scrollTop = document.documentElement.scrollTop; @@ -1978,11 +1981,13 @@ export default { show: true, }; }, - created() {}, + created() { + this.$nextTick(() => { + this.getPlatformChildren(); + }); + }, mounted() { _this = this; - console.log(document.getElementsByClassName("effect-box")); - this.getPlatformChildren(); // 閲嶇疆鏍瑰瓧浣撳ぇ灏� let root = document.documentElement; root.style.fontSize = "var(--base-font-size)"; @@ -3232,7 +3237,6 @@ export default { // 閲嶇疆鏍瑰瓧浣撳ぇ灏� let root = document.documentElement; root.style.fontSize = "16px"; - // location.reload(); }, }; </script> -- 2.24.3