diff --git a/wwwroot/usermenu.ui b/wwwroot/usermenu.ui new file mode 100644 index 0000000..a2f5882 --- /dev/null +++ b/wwwroot/usermenu.ui @@ -0,0 +1,16 @@ +{% set roles = get_user_roles(get_user()) %} +{ + "widgettype":"Menu", + "options":{ + "items":[ +{% if 'customer.* in roles %} + { + "name":"myaccount", + "label":"我的帐务", + "icon":"{{entire_url('/imgs/account.svg')}}", + "url":"{{entire_url('myaccount.ui')}}" + } +{% endif %} + ] + } +}