From 876d9ff59e282f25010a4d5d52a277e994e8b99d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 9 Jul 2026 12:02:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=9F=E6=88=B7=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=B7=A6=E4=B8=8A=E8=A7=92=E5=9B=BE=E6=A0=87=E5=92=8C?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=90=8D=E7=A7=B0=EF=BC=8C=E8=AF=BB=E5=8F=96?= =?UTF-8?q?organization.iconid+orgname?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/index.ui | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index ce884a6d..8fefaf82 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -1,3 +1,9 @@ +{% set userorgid = get_userorgid() %} +{% set env = request._run_ns %} +{% set sor = env.get_sor('sage') %} +{% set org = sor.execute_sql('SELECT orgname, iconid FROM organization WHERE id = ${orgid}$', {'orgid': userorgid}).first() %} +{% set orgname = org.orgname if org and org.orgname else 'OpenComputing' %} +{% set icon = org.iconid if org and org.iconid else 'imgs/ocai.svg' %} { "widgettype": "VBox", "options": { @@ -37,18 +43,18 @@ ] }, { - "widgettype": "Image", + "widgettype": "Svg", "options": { - "url": "{{entire_url('/imgs/ocai.svg')}}", - "height": "64px", - "marginLeft": "12px" + "css": "sage-logo", + "rate": 2, + "url": "{{entire_url('/appbase/show_icon.dspy')}}?id={{icon}}" } }, { "widgettype": "Title4", "options": { "css": "sage-brand-title", - "text": "元境", + "text": "{{orgname}}", "fontWeight": "bold", "marginLeft": "8px" }