refactor: replace useBackgroundOptimization with unified useBackground composable and update Nginx SSE route configuration

This commit is contained in:
jxxghp
2026-05-17 08:32:17 +08:00
parent bbe3368c69
commit 75862c026a
20 changed files with 328 additions and 147 deletions
+3 -3
View File
@@ -4,11 +4,11 @@ import { hexToRgb } from '@layouts/utils'
import api from '@/api'
import { formatBytes } from '@/@core/utils/formatters'
import { useI18n } from 'vue-i18n'
import { useBackgroundOptimization } from '@/composables/useBackgroundOptimization'
import { useBackground } from '@/composables/useBackground'
// 国际化
const { t } = useI18n()
const { useDataRefresh } = useBackgroundOptimization()
const { useDataRefresh } = useBackground()
// 输入参数
const props = defineProps({
@@ -127,7 +127,7 @@ async function loadMemoryData() {
}
}
// 使用优化的数据刷新定时器
// 使用数据刷新定时器
const { loading } = useDataRefresh(
'analytics-memory',
loadMemoryData,