fix: use {{entire_url()}} for all Menu url paths in index.ui and login.ui
- Menu items now use {{entire_url('/module')}} instead of hardcoded paths
- Iframe src also uses {{entire_url()}}
- Register button in login.ui uses {{entire_url('/rbac/user/register.ui')}}
- Removed unnecessary binds for Menu widget (Menu handles click internally)
This commit is contained in:
parent
e7c6ec548d
commit
21cbd1b2fb
@ -92,37 +92,37 @@
|
|||||||
"name": "dashboard",
|
"name": "dashboard",
|
||||||
"label": "工作台",
|
"label": "工作台",
|
||||||
"icon": "dashboard",
|
"icon": "dashboard",
|
||||||
"url": "/unified_dashboard"
|
"url": "{{entire_url('/unified_dashboard')}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "customers",
|
"name": "customers",
|
||||||
"label": "客户管理",
|
"label": "客户管理",
|
||||||
"icon": "people",
|
"icon": "people",
|
||||||
"url": "/customer_management"
|
"url": "{{entire_url('/customer_management')}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "opportunities",
|
"name": "opportunities",
|
||||||
"label": "商机管理",
|
"label": "商机管理",
|
||||||
"icon": "trending_up",
|
"icon": "trending_up",
|
||||||
"url": "/opportunity_management"
|
"url": "{{entire_url('/opportunity_management')}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "contracts",
|
"name": "contracts",
|
||||||
"label": "合同管理",
|
"label": "合同管理",
|
||||||
"icon": "description",
|
"icon": "description",
|
||||||
"url": "/contract_management"
|
"url": "{{entire_url('/contract_management')}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "finance",
|
"name": "finance",
|
||||||
"label": "财务管理",
|
"label": "财务管理",
|
||||||
"icon": "account_balance",
|
"icon": "account_balance",
|
||||||
"url": "/financial_management"
|
"url": "{{entire_url('/financial_management')}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "approvals",
|
"name": "approvals",
|
||||||
"label": "审批管理",
|
"label": "审批管理",
|
||||||
"icon": "check_circle",
|
"icon": "check_circle",
|
||||||
"url": "/workflow_approval"
|
"url": "{{entire_url('/workflow_approval')}}"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"style": {
|
"style": {
|
||||||
@ -146,7 +146,7 @@
|
|||||||
"widgettype": "Iframe",
|
"widgettype": "Iframe",
|
||||||
"id": "content_frame",
|
"id": "content_frame",
|
||||||
"options": {
|
"options": {
|
||||||
"url": "/unified_dashboard",
|
"url": "{{entire_url('/unified_dashboard')}}",
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "100%",
|
"height": "100%",
|
||||||
"style": {
|
"style": {
|
||||||
@ -160,12 +160,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"binds": [
|
"binds": [
|
||||||
{
|
|
||||||
"wid": "main_menu",
|
|
||||||
"event": "itemclick",
|
|
||||||
"actiontype": "navigate",
|
|
||||||
"target": "{{item.url}}"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"wid": "btn_logout",
|
"wid": "btn_logout",
|
||||||
"event": "click",
|
"event": "click",
|
||||||
|
|||||||
@ -79,7 +79,7 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"label": "注册账号",
|
"label": "注册账号",
|
||||||
"variant": "text",
|
"variant": "text",
|
||||||
"url": "/rbac/user/register.ui"
|
"url": "{{entire_url('/rbac/user/register.ui')}}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user