fix(ui): provide default branding for central admin
This commit is contained in:
@@ -65,7 +65,12 @@ class HandleInertiaRequests extends Middleware
|
|||||||
'branding' => function () {
|
'branding' => function () {
|
||||||
$tenant = tenancy()->tenant;
|
$tenant = tenancy()->tenant;
|
||||||
if (!$tenant) {
|
if (!$tenant) {
|
||||||
return null;
|
// 中央後台預設 Branding
|
||||||
|
return [
|
||||||
|
'logo_url' => \Storage::url('defaults/logo.png'), // 中央後台也使用預設 Logo
|
||||||
|
'primary_color' => '#4F46E5',
|
||||||
|
'text_color' => '#1a1a1a',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
$logoUrl = null;
|
$logoUrl = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user