修复模型新增后的bug

This commit is contained in:
2020-05-14 07:59:54 +08:00
parent 980548f19a
commit 990f649724
+1
View File
@@ -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('操作失败!');