🐛 Bug fixes and optimization
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user