* change default active module.

This commit is contained in:
Chenjianyu
2023-07-20 15:18:35 +08:00
parent 155a180b4f
commit e6f87cd4ad
+1 -1
View File
@@ -264,7 +264,7 @@ class ai extends control
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->inlink('promptSelectDataSource', "promptID=$promptID") . '#app=admin'));
}
$this->view->activeDataSource = empty($prompt->module) ? 'story' : $prompt->module;
$this->view->activeDataSource = empty($prompt->module) ? 'my' : $prompt->module;
$this->view->dataSource = $this->config->ai->dataSource;
$this->view->prompt = $prompt;
$this->view->promptID = $promptID;