Browse Source

feat: 点击列表时自动关闭

rindy 5 months ago
parent
commit
460a7714ad

+ 3 - 0
packages/qjkankan-view/src/components/UIGather/list.vue

@@ -320,6 +320,9 @@ const initSceneSwiper = () => {
   });
 };
 const tabCurrentScene = (data, index) => {
+  if(data.type == '4dkk') {
+    store.commit("functions/setShowScenesList", false);
+  }
   store.commit("scene/setCurrentScene", data);
 
   // SceneSwiper.value.slideTo(index);

+ 3 - 0
packages/qjkankan-view/src/components/UIGather/mobile/list.vue

@@ -293,6 +293,9 @@ const initSceneSwiper = () => {
   });
 };
 const tabCurrentScene = (data, index) => {
+  if(data.type == '4dkk') {
+    store.commit("functions/setShowScenesList", false);
+  }
   store.commit("scene/setCurrentScene", data);
 
   // SceneSwiper.value.slideTo(index);