fix: add /supplychain/ prefix to entire_url in index.ui and menu.ui

entire_url() without module prefix resolves to wrong path,
causing 403 on RBAC check. Now uses absolute /supplychain/ paths.
This commit is contained in:
yumoqing 2026-07-10 11:59:08 +08:00
parent 749047814f
commit efe45215f0
2 changed files with 13 additions and 13 deletions

View File

@ -37,7 +37,7 @@
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "app.supplychain_content", "target": "app.supplychain_content",
"options": { "options": {
"url": "{{entire_url('suppliers_list')}}" "url": "{{entire_url('/supplychain/suppliers_list')}}"
}, },
"mode": "replace" "mode": "replace"
} }
@ -77,7 +77,7 @@
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "app.supplychain_content", "target": "app.supplychain_content",
"options": { "options": {
"url": "{{entire_url('supply_contracts_list')}}" "url": "{{entire_url('/supplychain/supply_contracts_list')}}"
}, },
"mode": "replace" "mode": "replace"
} }
@ -117,7 +117,7 @@
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "app.supplychain_content", "target": "app.supplychain_content",
"options": { "options": {
"url": "{{entire_url('sub_resellers_list')}}" "url": "{{entire_url('/supplychain/sub_resellers_list')}}"
}, },
"mode": "replace" "mode": "replace"
} }
@ -157,7 +157,7 @@
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "app.supplychain_content", "target": "app.supplychain_content",
"options": { "options": {
"url": "{{entire_url('distribution_agreements_list')}}" "url": "{{entire_url('/supplychain/distribution_agreements_list')}}"
}, },
"mode": "replace" "mode": "replace"
} }
@ -197,7 +197,7 @@
"actiontype": "urlwidget", "actiontype": "urlwidget",
"target": "app.supplychain_content", "target": "app.supplychain_content",
"options": { "options": {
"url": "{{entire_url('sales_ledger_list')}}" "url": "{{entire_url('/supplychain/sales_ledger_list')}}"
}, },
"mode": "replace" "mode": "replace"
} }

View File

@ -10,15 +10,15 @@
}, },
{ {
"name": "供应商管理", "name": "供应商管理",
"url": "{{entire_url('suppliers_list')}}" "url": "{{entire_url('/supplychain/suppliers_list')}}"
}, },
{ {
"name": "供应商资源定价", "name": "供应商资源定价",
"url": "{{entire_url('supplier_resource_price_list')}}" "url": "{{entire_url('/supplychain/supplier_resource_price_list')}}"
}, },
{ {
"name": "供销合同", "name": "供销合同",
"url": "{{entire_url('supply_contracts_list')}}" "url": "{{entire_url('/supplychain/supply_contracts_list')}}"
}, },
{ {
"name": "--- 平台内供应链 ---", "name": "--- 平台内供应链 ---",
@ -27,11 +27,11 @@
}, },
{ {
"name": "平台供销关系", "name": "平台供销关系",
"url": "{{entire_url('platform_supply_relations_list')}}" "url": "{{entire_url('/supplychain/platform_supply_relations_list')}}"
}, },
{ {
"name": "产品供应映射", "name": "产品供应映射",
"url": "{{entire_url('product_supplier_mapping_list')}}" "url": "{{entire_url('/supplychain/product_supplier_mapping_list')}}"
}, },
{ {
"name": "--- 分销管理 ---", "name": "--- 分销管理 ---",
@ -40,11 +40,11 @@
}, },
{ {
"name": "二级分销商", "name": "二级分销商",
"url": "{{entire_url('sub_resellers_list')}}" "url": "{{entire_url('/supplychain/sub_resellers_list')}}"
}, },
{ {
"name": "分销协议", "name": "分销协议",
"url": "{{entire_url('distribution_agreements_list')}}" "url": "{{entire_url('/supplychain/distribution_agreements_list')}}"
}, },
{ {
"name": "--- 账务 ---", "name": "--- 账务 ---",
@ -53,7 +53,7 @@
}, },
{ {
"name": "销售记账", "name": "销售记账",
"url": "{{entire_url('sales_ledger_list')}}" "url": "{{entire_url('/supplychain/sales_ledger_list')}}"
} }
] ]
} }