Commit a436aef0 authored by zhengke's avatar zhengke

优化首页加载

parent bf03c0b9
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
</div> </div>
</div> </div>
<div v-if="dataList.length>0" class="columnCount5 rounded"> <div v-if="(dataList.length>0&&queryObj.pageIndex>1)||(dataList.length>0&&queryObj.pageIndex==1&&!loading)" class="columnCount5 rounded">
<template v-for="(item,index) in dataList"> <template v-for="(item,index) in dataList">
<div class="MarketIndexListBox bg-white rounded"> <div class="MarketIndexListBox bg-white rounded">
<div class="MarketIndexList-Hover"> <div class="MarketIndexList-Hover">
...@@ -395,7 +395,9 @@ const queryTemplateBySearchHandler = async () => { ...@@ -395,7 +395,9 @@ const queryTemplateBySearchHandler = async () => {
dataList.value = dataList.value.concat(pageRes.data.data.pageData); dataList.value = dataList.value.concat(pageRes.data.data.pageData);
queryObj.pageCount = pageRes.data.data.pageCount; queryObj.pageCount = pageRes.data.data.pageCount;
} }
loading.value = false setTimeout(()=>{
loading.value = false
},300)
} catch (error) { } catch (error) {
loading.value = false loading.value = false
} }
...@@ -413,7 +415,7 @@ const onCountryNameChangeHandler = (row: Object) => { ...@@ -413,7 +415,7 @@ const onCountryNameChangeHandler = (row: Object) => {
countriesOther.value.forEach(x=>{ countriesOther.value.forEach(x=>{
x.checked = false x.checked = false
}) })
colorArr.value.forEach(x=>{ countries.value.forEach(x=>{
x.checked = false x.checked = false
}) })
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment