* [bug#67303,done,1h] Remove api view in lite.

This commit is contained in:
daitingting
2025-11-20 11:12:21 +08:00
parent 971d12c811
commit 02bcd79575
+4
View File
@@ -42,6 +42,8 @@ class doc extends control
public function lastViewedSpaceHome()
{
$lastViewedSpaceHome = $this->doc->getLastViewed('lastViewedSpaceHome');
if($this->config->vision == 'lite' && $lastViewedSpaceHome == 'api') $lastViewedSpaceHome = 'mine';
if($lastViewedSpaceHome === 'api') return $this->locate($this->createLink('api', 'index'));
$spaceMap = array(
@@ -66,6 +68,8 @@ class doc extends control
public function lastViewedSpace()
{
$lastViewedSpaceHome = $this->doc->getLastViewed('lastViewedSpaceHome');
if($this->config->vision == 'lite' && $lastViewedSpaceHome == 'api') $lastViewedSpaceHome = 'mine';
if($lastViewedSpaceHome === 'api') return $this->locate($this->createLink('api', 'index'));
$spaceMap = array(