From fe7b34615a98197798821e0cf4d4dd5106735ab1 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Thu, 21 Mar 2024 10:30:40 +0800 Subject: [PATCH] 1 --- src/pages/3D.vue | 2 +- src/utils/glass.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/3D.vue b/src/pages/3D.vue index 9557492..036bb9b 100644 --- a/src/pages/3D.vue +++ b/src/pages/3D.vue @@ -41,7 +41,7 @@ store.$subscribe((mutation, state) => { ) { state.data1.EquipmentsArrayList.map((item) => { const { equipmentName, status: itemStatus } = item; - status.value[eqMap[equipmentName]] = 1; // TODO 目前先强制为1; statusMap[itemStatus]; + status.value[eqMap[equipmentName]] = statusMap[itemStatus]; }); } }); diff --git a/src/utils/glass.js b/src/utils/glass.js index b20ddd7..f3f282d 100644 --- a/src/utils/glass.js +++ b/src/utils/glass.js @@ -88,7 +88,7 @@ export default class Glass { this.el.style.width = size ? `${size}px` : "16px"; this.el.style.height = size ? `${size}px` : "16px"; this.el.style.transformOrigin = "center"; - this.el.style.transition = `all ${distance / 25}s linear`; + this.el.style.transition = `all ${distance / 10}s linear`; this.el.style.zIndex = "100"; this.el.style.pointerEvents = "none"; // this.el.style.transform = `rotate(${angle}deg) skew(32deg, 8deg)`;