Files
health-mp/src/store/profile.ts

23 lines
464 B
TypeScript

import { defineStore } from 'pinia'
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: {
},
})