|
|
@@ -38,7 +38,7 @@
|
|
|
<div class="home-main__market">
|
|
|
<div class="left">
|
|
|
<h2>合金指数</h2>
|
|
|
- <span>{{ formatDate(marketRun.tradedate, "YYYY-MM-DD") }}</span>
|
|
|
+ <span>{{ formatDate(marketRun.tradedate ?? Date(), "YYYY-MM-DD") }}</span>
|
|
|
</div>
|
|
|
<div class="right">
|
|
|
<table cellspacing="0" cellpadding="0">
|
|
|
@@ -91,7 +91,7 @@ const refreshing = shallowRef(false) // 是否处于加载中状态
|
|
|
const topBanners = shallowRef<Model.ImageConfigsRsp[]>([]) // 轮播图列表
|
|
|
const bodyBanners = shallowRef<Model.ImageConfigsRsp[]>([]) // 轮播图列表
|
|
|
const newsList = shallowRef<Model.SiteColumnDetailRsp[]>([]) // 资讯列表
|
|
|
-const marketRun = shallowRef<Model.MarketRunRsp>({}) // 资讯列表
|
|
|
+const marketRun = shallowRef<Partial<Model.MarketRunRsp>>({}) // 市场
|
|
|
|
|
|
const {dataList, getQuerySpotGoodsPriceLists} = useQuerySpotGoodsPriceLists()
|
|
|
getQuerySpotGoodsPriceLists()
|