修复模型新增后的bug
This commit is contained in:
@@ -148,6 +148,7 @@ class Model extends Base {
|
|||||||
}
|
}
|
||||||
$result = ModelM::update(['status' => $status], ['id' => $id]);
|
$result = ModelM::update(['status' => $status], ['id' => $id]);
|
||||||
if (false !== $result) {
|
if (false !== $result) {
|
||||||
|
Cache::pull('model_list');
|
||||||
return $this->success('状态设置成功!');
|
return $this->success('状态设置成功!');
|
||||||
} else {
|
} else {
|
||||||
return $this->error('操作失败!');
|
return $this->error('操作失败!');
|
||||||
|
|||||||
Reference in New Issue
Block a user