diff --git a/web/src/views/dashboard/Dashboard.vue b/web/src/views/dashboard/Dashboard.vue index e160247..d470441 100644 --- a/web/src/views/dashboard/Dashboard.vue +++ b/web/src/views/dashboard/Dashboard.vue @@ -110,7 +110,7 @@ const renderLineChart = () => { ], chart: { type: 'line', - height: 240, + height: 300, toolbar: { show: false }, background: 'transparent', animations: { @@ -221,7 +221,7 @@ const renderLineChart = () => { ` } }, - responsive: [{ breakpoint: 768, options: { chart: { height: 200 }, legend: { position: 'bottom', offsetY: 0 } } }] + responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom', offsetY: 0 } } }] } lineChart = new ApexCharts(container, options) lineChart.render() @@ -247,7 +247,7 @@ const renderPieChart = () => { series: taskStats.value.map(item => item.count), chart: { type: 'donut', - height: 200, + height: 260, toolbar: { show: false }, background: 'transparent', animations: { @@ -334,7 +334,7 @@ const renderPieChart = () => { style: { fontSize: '12px', fontFamily: 'Inter, sans-serif' }, y: { formatter: (val: number) => val + ' 次' } }, - responsive: [{ breakpoint: 768, options: { chart: { height: 200 }, legend: { position: 'bottom' } } }] + responsive: [{ breakpoint: 768, options: { chart: { height: 260 }, legend: { position: 'bottom' } } }] } pieChart = new ApexCharts(container, options) pieChart.render() @@ -401,13 +401,13 @@ onUnmounted(() => {
- + 执行统计 最近{{ chartDays }}天任务执行情况 - -
+ +
加载中...
@@ -415,13 +415,13 @@ onUnmounted(() => { - + 任务占比 最近{{ chartDays }}天任务执行分布 - -
+ +
加载中...
diff --git a/web/src/views/login/Login.vue b/web/src/views/login/Login.vue index 7025790..73dda19 100644 --- a/web/src/views/login/Login.vue +++ b/web/src/views/login/Login.vue @@ -19,7 +19,45 @@ const siteSubtitle = ref('轻量级定时任务管理系统') const siteIcon = ref('') const demoMode = ref(false) +// 从 localStorage 加载缓存的站点设置 +function loadCachedSettings() { + try { + const cached = localStorage.getItem('site_settings') + if (cached) { + const settings = JSON.parse(cached) + siteTitle.value = settings.title || '白虎面板' + siteSubtitle.value = settings.subtitle || '轻量级定时任务管理系统' + siteIcon.value = settings.icon || '' + demoMode.value = settings.demo_mode || false + document.title = siteTitle.value + + // 设置 favicon + if (siteIcon.value && siteIcon.value.trim().startsWith('
-
+
- - 分钟 + + 分钟
- +
diff --git a/web/src/views/tasks/TaskDialog.vue b/web/src/views/tasks/TaskDialog.vue index dfddab7..e69a641 100644 --- a/web/src/views/tasks/TaskDialog.vue +++ b/web/src/views/tasks/TaskDialog.vue @@ -217,14 +217,14 @@ async function save() {
-
+
- - 分钟 + + 分钟
- +