li.shaoyi 2 rokov pred
rodič
commit
c689790222
1 zmenil súbory, kde vykonal 10 pridanie a 14 odobranie
  1. 10 14
      src/packages/mobile/views/home/main/index.vue

+ 10 - 14
src/packages/mobile/views/home/main/index.vue

@@ -160,20 +160,16 @@ const onSpotChange = (index: number) => {
 
 // 下拉刷新
 const onRefresh = () => {
-  if (!topBanners.value.length) {
-    queryImageConfigs({
-      imageType: 1,
-    }).then((res) => {
-      topBanners.value = res.data
-    })
-  }
-  // if (!bodyBanners.value.length) {
-  //   queryImageConfigs({
-  //     imageType: 10,
-  //   }).then((res) => {
-  //     bodyBanners.value = res.data
-  //   })
-  // }
+  queryImageConfigs({
+    imageType: 1,
+  }).then((res) => {
+    topBanners.value = res.data
+  })
+  queryImageConfigs({
+    imageType: 10,
+  }).then((res) => {
+    bodyBanners.value = res.data
+  })
   // 现货行情
   queryThjSpotQuoteConfig().then((res) => {
     spotQuoteList.value = res.data