优化展示

This commit is contained in:
2025-11-27 21:32:21 +08:00
parent 2649ed048a
commit e1f38fd995

View File

@@ -107,7 +107,7 @@ export default {
this.loading = true; this.loading = true;
this.error = null; this.error = null;
try { try {
const response = await getRecipes({ page: 1, page_size: 999 }); const response = await getRecipes({ page: 1, page_size: 999, order_by: "id DESC" });
this.recipes = response.data.list || []; this.recipes = response.data.list || [];
} catch (err) { } catch (err) {
this.error = err.message || '未知错误'; this.error = err.message || '未知错误';