Commit 221fc14e by 杨树贤

语言放到cookiue

parent b658ea7c
Showing with 3 additions and 1 deletions
...@@ -31,7 +31,9 @@ use Dcat\Admin\Show\Field; ...@@ -31,7 +31,9 @@ use Dcat\Admin\Show\Field;
// 覆盖默认配置 // 覆盖默认配置
config(['admin' => user_admin_config()]); config(['admin' => user_admin_config()]);
config(['app.locale' => config('admin.lang') ?: config('app.locale')]); config(['app.locale' => config('admin.lang') ?: config('app.locale')]);
setcookie('app_lang', config('admin.lang') ?: config('app.locale'));
$primaryColor = Admin::color()->primary(); $primaryColor = Admin::color()->primary();
$primaryColor = '#009688'; $primaryColor = '#009688';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment