From 867611421a76f4f4a37a539504bd2fd95d6511d3 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Fri, 14 Jun 2024 16:23:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AE=9E=E9=AA=8C=E6=80=A7?= =?UTF-8?q?=E8=B4=A8=E7=9A=84=E6=80=A7=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/EChartsAsset.php | 2 +- assets/QuillAsset.php | 2 +- config/db.php | 8 ++++---- config/web.php | 2 +- web/index-test.php | 16 ---------------- web/index.php | 4 ++-- 6 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 web/index-test.php diff --git a/assets/EChartsAsset.php b/assets/EChartsAsset.php index d3ea5bd..c5afbbf 100644 --- a/assets/EChartsAsset.php +++ b/assets/EChartsAsset.php @@ -8,6 +8,6 @@ class EChartsAsset extends AssetBundle { public $sourcePath = '@npm/echarts/dist'; public $js = [ - 'echarts.js', + 'echarts.min.js', ]; } \ No newline at end of file diff --git a/assets/QuillAsset.php b/assets/QuillAsset.php index 62889a3..000784b 100644 --- a/assets/QuillAsset.php +++ b/assets/QuillAsset.php @@ -8,7 +8,7 @@ class QuillAsset extends AssetBundle { public $sourcePath = '@npm/quill/dist'; public $js = [ - 'quill.js', + 'quill.min.js', ]; public $css = [ 'quill.snow.css', diff --git a/config/db.php b/config/db.php index d11e804..39f2194 100644 --- a/config/db.php +++ b/config/db.php @@ -11,10 +11,10 @@ return [ 'charset' => 'utf8', 'schemaMap' => [ 'mysql' => SamIT\Yii2\MariaDb\Schema::class - ] + ], // Schema cache options (for production environment) - //'enableSchemaCache' => true, - //'schemaCacheDuration' => 60, - //'schemaCache' => 'cache', + 'enableSchemaCache' => true, + 'schemaCacheDuration' => 60, + 'schemaCache' => 'cache', ]; diff --git a/config/web.php b/config/web.php index 13c94a1..bceedeb 100644 --- a/config/web.php +++ b/config/web.php @@ -21,7 +21,7 @@ $config = [ 'authManager' => [ 'class' => 'yii\rbac\DbManager', // uncomment if you want to cache RBAC items hierarchy -// 'cache' => 'cache', + 'cache' => 'cache', ], 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation diff --git a/web/index-test.php b/web/index-test.php deleted file mode 100644 index 1ec192f..0000000 --- a/web/index-test.php +++ /dev/null @@ -1,16 +0,0 @@ -run(); diff --git a/web/index.php b/web/index.php index 02d5e1d..9526e8a 100644 --- a/web/index.php +++ b/web/index.php @@ -1,8 +1,8 @@