fix: 增加bat初始化

This commit is contained in:
Ying
2022-08-24 10:19:52 +08:00
parent ec9e0129bd
commit 021edabb72
4 changed files with 16 additions and 10 deletions

View File

@@ -42,6 +42,13 @@ class IndexInitialize implements MiddlewareInterface
return redirect('/install/index');
}
$siteInfo = saenv('site', true);
if ($siteInfo && is_array($siteInfo)) {
foreach ($siteInfo as $key => $value) {
\support\View::assign($key,$value);
}
}
return $handler($request);
}
}