diff --git a/library/think/View.php b/library/think/View.php index 4c6f5bdb..a521e421 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -159,7 +159,7 @@ class View $method = $renderContent ? 'display' : 'fetch'; $this->engine->$method($template, $vars, $config); } catch (\Exception $e) { - ob_clean(); + ob_end_clean(); throw $e; }