浏览代码

241109-1代码。

baoyubo 9 月之前
父节点
当前提交
5f8f508afe
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      routers/api/rainfall/__init__.py
  2. 2 0
      routers/prod_api/system/menu/__init__.py

+ 1 - 1
routers/api/rainfall/__init__.py

@@ -60,7 +60,7 @@ async def get_pattern_info(
     code: str,
     db: Session = Depends(get_db)
 ):
-    rainfulldata = get_stcd_data(code,24)
+    rainfulldata = get_stcd_data(code,25)
     update_time_list = []
     rainfall_history = []
     rainfall_future = []

+ 2 - 0
routers/prod_api/system/menu/__init__.py

@@ -125,6 +125,8 @@ async def getRouters(request: Request, db: Session = Depends(get_db),
             menu_tree = []  # 初始化一个列表来存储菜单树结构
             for menu in menus:
                 component =  'Layout'
+                if menu.menu_type=='M' and parent_menu:
+                    component = 'ParentView'
                 if menu.component:
                     component= menu.component
                 menu_data = {