feat: 增加存储详情功能

This commit is contained in:
2026-08-25 10:42:42 +08:00
parent 8ff7d4548e
commit e42d0854ec
13 changed files with 176 additions and 62 deletions

View File

@@ -1,15 +1,19 @@
import { defineStore } from 'pinia'
import type { IProfile } from '@/utils/profile'
import type { IProfile } from "@/type/profile";
import type {IStats} from "@/type";
export const useProfileStore = defineStore('profile', {
state: () => ({
showProfilePopup: false,
showStoragePopup: false,
profileForm: {
gender: '',
height: 0,
name: '',
weight: 0,
} as IProfile,
storageStats: [] as IStats[],
storageTotal: 0,
isRefresh: false,
}),
actions: {