小修小补

修复load图表没有正确调整夜间模式的问题
update README.md
This commit is contained in:
Chenx221 2024-04-21 17:04:47 +08:00
parent efea8d7ac5
commit b8fdda2cf0
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
3 changed files with 8 additions and 12 deletions

View File

@ -103,11 +103,11 @@ Windows 11 Pro (22631.3374) / Debian 12
PhpStorm 2024.1
PHP 8.3.4 / 8.2.7 (这个项目需要PHP>=8.2)
PHP 8.3.4 / 8.2.18 (这个项目需要PHP>=8.2)
MariaDB 11.3.2 / 10.11.6
Apache 2.4.59 / 2.4.57
Apache 2.4.59
~~Memurai 4.1.1/~~ Garnet 1.0.5 / Redis 7.0.15

View File

@ -1,9 +0,0 @@
version: '2'
services:
php:
image: yiisoftware/yii2-php:7.4-apache
volumes:
- ~/.composer-docker/cache:/root/.composer/cache:delegated
- ./:/app:delegated
ports:
- '8000:80'

View File

@ -311,7 +311,12 @@ var option = {
]
};
if(needLoadGraph !== null){
var myChart1 = echarts.init(needLoadGraph);
var myChart1;
if ((window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches)|| document.documentElement.getAttribute('data-bs-theme')==='dark') {
myChart1 = echarts.init(needLoadGraph,'dark');
}else{
myChart1 = echarts.init(needLoadGraph);
}
var option1 = {
legend: {
data: ['Load']