Merge branch 'sprint/scx_checkapi' into 'master'

* Check locate if api.

See merge request easycorp/zentaopms!2603
This commit is contained in:
朱金勇
2022-03-29 03:19:25 +00:00
+1 -1
View File
@@ -3290,7 +3290,7 @@ class execution extends control
$this->view->project = $project;
$this->project->setMenu($projectID);
if(!empty($project->model) and $project->model == 'kanban') return $this->locate($this->createLink('project', 'index', "projectID=$projectID"));
if(!empty($project->model) and $project->model == 'kanban' and !(defined('RUN_MODE') and RUN_MODE == 'api')) return $this->locate($this->createLink('project', 'index', "projectID=$projectID"));
}
if($this->app->viewType == 'mhtml')