Commit f53bfa3f authored by duanjinfei's avatar duanjinfei

fix app is show filed

parent 544934ae
...@@ -15,6 +15,7 @@ async function fetchAllData(supabase, table: string, pageSize: number = 1000) { ...@@ -15,6 +15,7 @@ async function fetchAllData(supabase, table: string, pageSize: number = 1000) {
const { data, error } = await supabase const { data, error } = await supabase
.from(table) .from(table)
.select('*') // 可以根据需要调整字段 .select('*') // 可以根据需要调整字段
.eq('is_show', true)
.order('created_at', { ascending: true }) // 按照创建时间排序 .order('created_at', { ascending: true }) // 按照创建时间排序
.range(offset, offset + pageSize - 1); // 分页范围 .range(offset, offset + pageSize - 1); // 分页范围
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment