Ver Fonte

20250207 优化调整

贾小兵 há 2 meses atrás
pai
commit
934dbb14d7
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      application/admin/controller/department/Index.php

+ 4 - 0
application/admin/controller/department/Index.php

@@ -123,6 +123,9 @@ class Index extends Backend
                     if ($result !== false) {
                         //清空部门缓存
                         DepartmentModel::clearCache();
+
+                        \think\Hook::listen("wipecache_after");
+
                         $this->success();
                     } else {
                         $this->error($this->model->getError());
@@ -184,6 +187,7 @@ class Index extends Backend
                 if ($result !== false) {
                     //清空部门缓存
                     DepartmentModel::clearCache();
+                    \think\Hook::listen("wipecache_after");
                     $this->success();
                 } else {
                     $this->error(__('No rows were updated'));