feat: 增加个人信息模块
This commit is contained in:
18
src/store/profile.ts
Normal file
18
src/store/profile.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import type { IProfile } from '@/utils/profile'
|
||||
|
||||
export const useProfileStore = defineStore('profile', {
|
||||
state: () => ({
|
||||
showProfilePopup: false,
|
||||
profileForm: {
|
||||
gender: '',
|
||||
height: 0,
|
||||
name: '',
|
||||
weight: 0,
|
||||
} as IProfile,
|
||||
isRefresh: false,
|
||||
}),
|
||||
actions: {
|
||||
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user