From f2fe470bcc3dcfb541fe9ccd3611e2684f89e885 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Mon, 3 Mar 2025 16:34:53 +0800 Subject: [PATCH] update --- app/api/endpoints/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/endpoints/config.py b/app/api/endpoints/config.py index edd4ef7..82c6ded 100644 --- a/app/api/endpoints/config.py +++ b/app/api/endpoints/config.py @@ -13,7 +13,7 @@ async def get_configs( db: Session = Depends(get_db) ): """获取所有配置""" - configs = db.query(ConfigDB).all() + configs = db.query(ConfigDB).order_by(ConfigDB.key.asc()).all() # 转换为数组格式 config_list = [