!149 Fix configuration link status disabled and display problems
* wip * wip * Fix configuration link status disabled and display problems -> https:/…
This commit is contained in:
parent
f72b61a4a3
commit
69e9a051c1
|
|
@ -65,7 +65,8 @@ class Url
|
|||
return $value->url ?? '';
|
||||
} elseif ($type == 'page') {
|
||||
if (! $value instanceof \Beike\Models\Page) {
|
||||
$value = \Beike\Models\Page::query()->find($value);
|
||||
$page = \Beike\Models\Page::query()->find($value);
|
||||
$value = $page->active ? $page : null;
|
||||
}
|
||||
|
||||
return $value->url ?? '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue