🐛 Bug fixes and optimization

This commit is contained in:
2024-08-13 18:26:36 +08:00
parent 223f97038c
commit baf529e838
8 changed files with 63 additions and 21 deletions

View File

@@ -23,7 +23,7 @@
</template>
<script setup lang="ts">
import { defaultUserinfo, useUserinfo } from "@/stores/userinfo"
import { useUserinfo } from "@/stores/userinfo"
import { computed } from "vue"
const {t} = useI18n()
@@ -52,7 +52,7 @@ const avatar = computed(() => {
function signOut() {
useCookie("__hydrogen_atk", { watch: "shallow" }).value = null
useCookie("__hydrogen_rtk", { watch: "shallow" }).value = null
id.userinfo = defaultUserinfo
id.userinfo = null
reloadNuxtApp()
}
</script>