feat: 增加存储上限提示功能

This commit is contained in:
2026-08-28 15:55:46 +08:00
parent 338ba726a0
commit 196251dfc9
4 changed files with 20 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ import { getOverview, getPlan, getProfile } from '@/utils/profile'
import { useProfileStore } from '@/store/profile'
import { useAppStore } from "@/store/app";
import type { IProfile } from "@/type/profile";
import { countRecordsByMonth, getTotalCount } from "@/utils/record";
import { countRecordsByMonth, getMaxRecord, getTotalCount } from "@/utils/record";
const profileStore = useProfileStore()
const appStore = useAppStore()
@@ -87,6 +87,7 @@ function openPlanPopup() {
function openStoragePopup() {
profileStore.storageStats = countRecordsByMonth()
profileStore.storageTotal = getTotalCount()
profileStore.storageMax = getMaxRecord()
profileStore.showStoragePopup = true
}
</script>