add user/setting page.

This commit is contained in:
xuyue committed 2023-02-13 20:55:36 +08:00
1 parent 1162e51499
commit b5e1b3db3a
5 files changed
+47 -25

No files matched your search

+2 -2
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,
}
})