|
@@ -202,7 +202,7 @@ class Xw extends Controller
|
|
protected function _form_result(bool $state)
|
|
protected function _form_result(bool $state)
|
|
{
|
|
{
|
|
if ($state) {
|
|
if ($state) {
|
|
- $this->success('保存成功!', 'javascript:history.back()');
|
|
|
|
|
|
+ $this->success('保存成功!',in_array($this->request->action(),['add','edit'])? 'javascript:history.back()':'');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|