Sfoglia il codice sorgente

home页功能小优化

任一存 1 anno fa
parent
commit
b5a9bea83e
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/views/HomeView.vue

+ 5 - 0
src/views/HomeView.vue

@@ -640,6 +640,11 @@ function onClickArea(idx) {
     activeAreaIdx.value = -1
   } else {
     activeAreaIdx.value = idx
+    if (activeHotRelicDetail.value.region !== areaList.value[activeAreaIdx.value]) {
+      activeHotRelicIdx.value = hotRelicList.value.findIndex((item) => {
+        return item.belongArea === areaList.value[activeAreaIdx.value]
+      })
+    }
   }
 }