From 02bcd79575166a3923367c41bcc79bf09ab5077b Mon Sep 17 00:00:00 2001 From: daitingting Date: Thu, 20 Nov 2025 11:12:21 +0800 Subject: [PATCH] * [bug#67303,done,1h] Remove api view in lite. --- module/doc/control.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/doc/control.php b/module/doc/control.php index 6571881542..7ca704b0f6 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -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(