🐛 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>

View File

@ -2,7 +2,7 @@
<div class="w-full max-w-[720px]">
<v-expand-transition>
<v-alert v-show="route.query['redirect_uri']" variant="tonal" type="info" class="text-xs">
You need to sign in before access that page. After you signed in, we will redirect you to: <br />
{{ t("callbackHint") }} <br />
<span class="font-mono">{{ route.query["redirect_uri"] }}</span>
</v-alert>
</v-expand-transition>
@ -10,5 +10,6 @@
</template>
<script setup lang="ts">
const { t } = useI18n()
const route = useRoute()
</script>