add user/setting page.

This commit is contained in:
2023-02-13 20:55:36 +08:00
parent 1162e51499
commit b5e1b3db3a
5 changed files with 47 additions and 25 deletions

View File

@@ -27,7 +27,7 @@ export const useUserStore = defineStore("user", () => {
storage.set(STORAGE_KEY.AUTHED, !!user.value.email)
}
function clearMyProfile() {
function clearProfile() {
profile.value = {}
storage.clear()
}
@@ -40,6 +40,6 @@ export const useUserStore = defineStore("user", () => {
hasProblemPermission,
isAuthed,
getMyProfile,
clearMyProfile,
clearProfile,
}
})