fix: 初始化时不显示日期范围变化提示
This commit is contained in:
@@ -113,6 +113,7 @@ const selectedKeywords = ref<string[]>([])
|
|||||||
const dateRange = ref<[string, string] | null>(null)
|
const dateRange = ref<[string, string] | null>(null)
|
||||||
const crawling = ref(false)
|
const crawling = ref(false)
|
||||||
const highPriorityCollapsed = ref(false)
|
const highPriorityCollapsed = ref(false)
|
||||||
|
const isInitialized = ref(false)
|
||||||
|
|
||||||
// 切换 High Priority Bids 的折叠状态
|
// 切换 High Priority Bids 的折叠状态
|
||||||
const toggleHighPriority = () => {
|
const toggleHighPriority = () => {
|
||||||
@@ -145,6 +146,12 @@ watch(selectedKeywords, (newKeywords) => {
|
|||||||
|
|
||||||
// 监听日期范围变化并显示提示
|
// 监听日期范围变化并显示提示
|
||||||
watch(dateRange, () => {
|
watch(dateRange, () => {
|
||||||
|
// 初始化时不显示提示
|
||||||
|
if (!isInitialized.value) {
|
||||||
|
isInitialized.value = true
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const totalBids = props.todayBids.length
|
const totalBids = props.todayBids.length
|
||||||
const filteredCount = filteredTodayBids.value.length
|
const filteredCount = filteredTodayBids.value.length
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user