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')}}" } } ]