feat: 增加存储上限提示功能
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user