Browse Source

fix: 长按位置更换

anxiaoxia 3 weeks ago
parent
commit
e06245ab4c
1 changed files with 10 additions and 9 deletions
  1. 10 9
      src/views/envmonitor/taiguv1/index.vue

+ 10 - 9
src/views/envmonitor/taiguv1/index.vue

@@ -19,21 +19,22 @@
         ></div>
         <div class="content">
             <div class="metting-info">
-                <div
-                    @touchstart="startPressLogo"
-                    @touchend="endPressLogo"
-                >
+                <div>
                     <img
                         class="logo"
                         :src="roomInfo.icon"
                     />
                 </div>
                 <div
-                    @touchstart="startPress"
-                    @touchend="endPress"
+                    @touchstart="startPressLogo"
+                    @touchend="endPressLogo"
                     class="name"
                 >{{ roomInfo.name }}</div>
-                <div class="location">38/F</div>
+                <div
+                    class="location"
+                    @touchstart="startPress"
+                    @touchend="endPress"
+                >38/F</div>
             </div>
 
             <div class="language-box">
@@ -310,7 +311,7 @@ const store = useStore()
 
 onMounted(async () => {
     console.log('========重新执行了');
-    
+
     //   TODO: 切换语言
     type.value = localStorage.getItem('lang') || 'zh-CN'
     locale.value = type.value
@@ -489,7 +490,7 @@ const getLampScenceControlGroupId = () => {
         category: 'SELTLG'
     }
     findForServe(params).then(res => {
-        lampScenceControlGroup.value.id = res.data[0]?.id
+        lampScenceControlGroup.value.id = res.data[0] ?.id
     })
 }