|
|
@@ -108,7 +108,7 @@ const handleAmount = (value?: number) => {
|
|
|
// 查询市场上个交易日
|
|
|
const getMarketRun = queryMarketRun().then((res) => {
|
|
|
marketInfo.value = res.data.find((e) => e.marketid === 0)
|
|
|
- const dateString = marketInfo.value?.pretradedate ?? new Date().toISOString()
|
|
|
+ const dateString = marketInfo.value?.pretradedate || new Date().toISOString()
|
|
|
currentDate.value = moment(dateString).format(pickerFormat.value).split('-')
|
|
|
})
|
|
|
|