mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
优化 JWT 令牌的存储和使用逻辑;调整布局样式和组件属性
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { NavigateToNewTab, isDarkMode } from '@/Utils'
|
||||
import { isLoadingAccount, useAccount } from '@/api/account'
|
||||
import { cookie, isLoadingAccount, useAccount } from '@/api/account'
|
||||
import { ThemeType } from '@/api/api-models'
|
||||
import { QueryGetAPI } from '@/api/query'
|
||||
import RegisterAndLogin from '@/components/RegisterAndLogin.vue'
|
||||
@@ -69,7 +69,6 @@ const type = computed(() => {
|
||||
}
|
||||
return ''
|
||||
})
|
||||
const cookie = useStorage('JWT_Token', '')
|
||||
const musicRquestStore = useMusicRequestProvider()
|
||||
|
||||
const canResendEmail = ref(false)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { useAccount } from '@/api/account'
|
||||
import { cookie, useAccount } from '@/api/account'
|
||||
import { BiliAuthCodeStatusType, BiliAuthModel } from '@/api/api-models'
|
||||
import { QueryGetAPI, QueryPostAPI } from '@/api/query'
|
||||
import EventFetcherStatusCard from '@/components/EventFetcherStatusCard.vue'
|
||||
@@ -40,8 +40,6 @@ const token = ref('')
|
||||
const turnstile = ref()
|
||||
|
||||
const accountInfo = useAccount()
|
||||
const useAuth = useAuthStore()
|
||||
const cookie = useLocalStorage('JWT_Token', '')
|
||||
const message = useMessage()
|
||||
|
||||
const resetEmailModalVisiable = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user