Pārlūkot izejas kodu

20250207 优化调整

贾小兵 2 mēneši atpakaļ
vecāks
revīzija
934dbb14d7
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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'));