[FIX] 重新導向機台列表麵包屑至正確層級
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 50s
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 50s
This commit is contained in:
@@ -80,8 +80,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 3. 處理最後一個動作/頁面
|
// 3. 處理最後一個動作/頁面
|
||||||
if ($lastSegment !== 'index') {
|
|
||||||
$pageLabel = match($lastSegment) {
|
$pageLabel = match($lastSegment) {
|
||||||
|
'index' => match($segments[1] ?? '') {
|
||||||
|
'members' => __('Member List'),
|
||||||
|
'machines' => __('Machine List'),
|
||||||
|
'warehouses' => __('Warehouse List (All)'),
|
||||||
|
'sales' => __('Sales Records'),
|
||||||
|
'analysis' => __('Analysis Management'),
|
||||||
|
'audit' => __('Audit Management'),
|
||||||
|
default => null,
|
||||||
|
},
|
||||||
'edit' => str_starts_with($routeName, 'profile') ? null : __('Edit'),
|
'edit' => str_starts_with($routeName, 'profile') ? null : __('Edit'),
|
||||||
'create' => __('Create'),
|
'create' => __('Create'),
|
||||||
'show' => __('Detail'),
|
'show' => __('Detail'),
|
||||||
@@ -157,7 +165,6 @@
|
|||||||
'active' => true
|
'active' => true
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// 確保最後一個 link 是 active 的
|
// 確保最後一個 link 是 active 的
|
||||||
if (!empty($links)) {
|
if (!empty($links)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user