From e6e732227f29b28aa3727acca0e60e345d7b6adb Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 31 May 2026 11:58:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=A2=E6=88=B7=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=AA=E8=A1=A8=E7=9B=98=E5=85=A5=E5=8F=A3?= =?UTF-8?q?,=20=E4=BF=AE=E5=A4=8D=E5=B7=B2=E7=99=BB=E5=BD=95=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8F=B3=E4=BE=A7=E5=86=85=E5=AE=B9=E4=B8=8D=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. global_menu.ui: 客户菜单首位添加dashboard菜单项 2. index.ui: sage_main_content默认子组件改为urlwidget直接加载dashboard, 解决已登录用户页面加载时user_logined事件不触发导致内容区空白的问题 --- wwwroot/global_menu.ui | 7 +++++++ wwwroot/index.ui | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/wwwroot/global_menu.ui b/wwwroot/global_menu.ui index cd1fc6a..fb95c5a 100644 --- a/wwwroot/global_menu.ui +++ b/wwwroot/global_menu.ui @@ -11,6 +11,13 @@ "items": [ {% if is_customer %} { + "name": "dashboard", + "label": "仪表盘", + "icon": "{{entire_url('/imgs/dashboard.svg')}}", + "url": "{{entire_url('/dashboard_for_sage/index.ui')}}", + "target": "app.sage_main_content" + } + ,{ "name": "model_plaza", "label": "模型广场", "icon": "{{entire_url('/imgs/cubes.svg')}}", diff --git a/wwwroot/index.ui b/wwwroot/index.ui index eac607f..d60bedf 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -170,11 +170,9 @@ ], "subwidgets": [ { - "widgettype": "Text", + "widgettype": "urlwidget", "options": { - "css": "sage-text-secondary", - "text": "加载中...", - "fontSize": "16px" + "url": "{{entire_url('/dashboard_for_sage/index.ui')}}" } } ]