From d523790c0fa0586fed711a83f3f8abc216539f27 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 19 Jan 2025 14:31:51 +0800 Subject: [PATCH] fix ApexCharts --- package.json | 2 +- .../dialog/SubscribeFilesDialog.vue | 102 +++++++++--------- src/pages/downloading.vue | 4 +- src/pages/setting.vue | 4 +- src/pages/subscribe.vue | 12 ++- src/views/dashboard/AnalyticsCpu.vue | 8 +- src/views/dashboard/AnalyticsMemory.vue | 8 +- 7 files changed, 83 insertions(+), 57 deletions(-) diff --git a/package.json b/package.json index 90735f12..f296f961 100644 --- a/package.json +++ b/package.json @@ -101,4 +101,4 @@ "workbox-window": "^7.3.0" }, "packageManager": "yarn@1.22.18" -} \ No newline at end of file +} diff --git a/src/components/dialog/SubscribeFilesDialog.vue b/src/components/dialog/SubscribeFilesDialog.vue index 5a1021c6..64b2477d 100644 --- a/src/components/dialog/SubscribeFilesDialog.vue +++ b/src/components/dialog/SubscribeFilesDialog.vue @@ -132,59 +132,63 @@ onBeforeMount(() => { - - - - - - +
+ + + + + + +
- - - - - +
+ + + + + +
diff --git a/src/pages/downloading.vue b/src/pages/downloading.vue index 4b32dd11..53c769aa 100644 --- a/src/pages/downloading.vue +++ b/src/pages/downloading.vue @@ -42,7 +42,9 @@ onMounted(async () => { - +
+ +
diff --git a/src/pages/setting.vue b/src/pages/setting.vue index 728179a9..2ba52f18 100644 --- a/src/pages/setting.vue +++ b/src/pages/setting.vue @@ -70,7 +70,9 @@ function jumpTab(tab: string) { - +
+ +
diff --git a/src/pages/subscribe.vue b/src/pages/subscribe.vue index 9b8658f1..14f29975 100644 --- a/src/pages/subscribe.vue +++ b/src/pages/subscribe.vue @@ -30,17 +30,23 @@ function jumpTab(tab: string) { - +
+ +
- +
+ +
- +
+ +
diff --git a/src/views/dashboard/AnalyticsCpu.vue b/src/views/dashboard/AnalyticsCpu.vue index 3dbbf744..44f5120a 100644 --- a/src/views/dashboard/AnalyticsCpu.vue +++ b/src/views/dashboard/AnalyticsCpu.vue @@ -23,6 +23,8 @@ const variableTheme = controlledComputed( () => vuetifyTheme.current.value.variables, ) +const chartKey = ref(0) + // 定时器 let refreshTimer: NodeJS.Timeout | null = null @@ -129,6 +131,10 @@ onUnmounted(() => { refreshTimer = null } }) + +onActivated(() => { + chartKey.value += 1 +})