From 58637df2e804d46bf4799b32c7293f97061d12fb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 5 May 2026 22:00:47 +0800 Subject: [PATCH] fix: menu.ui is now a Menu widget, not a plain JSON list --- wwwroot/menu.ui | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/wwwroot/menu.ui b/wwwroot/menu.ui index baa2a2f..c3a36c2 100644 --- a/wwwroot/menu.ui +++ b/wwwroot/menu.ui @@ -1,17 +1,23 @@ -[ - { - "name": "opportunities", - "label": "商机列表", - "url": "{{entire_url('opportunity_management.ui')}}" - }, - { - "name": "new_opportunity", - "label": "新建商机", - "url": "{{entire_url('opportunity_edit.ui')}}" - }, - { - "name": "sales_stages", - "label": "销售阶段", - "url": "{{entire_url('sales_stages_list.dspy')}}" +{ + "widgettype": "Menu", + "id": "opportunity_menu", + "options": { + "items": [ + { + "name": "opportunities", + "label": "商机列表", + "url": "{{entire_url('opportunity_management.ui')}}" + }, + { + "name": "new_opportunity", + "label": "新建商机", + "url": "{{entire_url('opportunity_edit.ui')}}" + }, + { + "name": "sales_stages", + "label": "销售阶段", + "url": "{{entire_url('sales_stages_list.dspy')}}" + } + ] } -] +}