fix(growth-quality): default period to newest period from API
ci/woodpecker/push/main Pipeline failed

The component shipped a hardcoded initial period (2026-06) that is present in the periods list, so the previous guard kept it and the page never defaulted to the newest period. Initialize empty so loadPeriods() applies periods[0] (backend returns DESC); /diagnosis treats an empty period as 'newest with data'.
This commit is contained in:
Hermes CI Fix
2026-09-23 15:44:07 +08:00
parent c88e1ad6c9
commit e79b51666d
+1 -1
View File
@@ -84,7 +84,7 @@ import { sessionEntityName } from '@/utils/entity'
// 企业只读标识(账套由登录窗口选定,页内无切换入口)
const entityLabel = ref(sessionEntityName())
const period = ref('2026-06')
const period = ref('') // 空 = 由 loadPeriods() 取后端倒序首元素(最新有数据期间)
const periods = ref<string[]>([])
const loading = ref(false)
const loadingPeriods = ref(false)