feat: adjust openapi page laod

This commit is contained in:
engigu
2026-03-06 08:53:22 +08:00
parent 40c3c58312
commit 36d1569f83
11 changed files with 293 additions and 256 deletions
+2 -2
View File
@@ -34,10 +34,10 @@ let searchTimer: ReturnType<typeof setTimeout> | null = null
async function loadEnvVars() {
try {
const res = await api.env.list({ page: currentPage.value, page_size: pageSize.value, name: filterName.value || undefined })
envVars.value = res.list
envVars.value = res.data
total.value = res.total
// 初始化显示状态,根据数据库的 hidden 状态同步显示
res.list.forEach(env => {
res.data.forEach(env => {
showValues.value[env.id] = !env.hidden
})
} catch { toast.error('加载环境变量失败') }