|
|
@@ -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
|