feat: 替换认证存储逻辑为BiliAuth

- 将所有使用useAuthStore的地方替换为useBiliAuth
- 删除useAuthStore文件,整合认证逻辑
- 更新相关视图和组件以适应新的认证存储
This commit is contained in:
2025-05-02 01:59:21 +08:00
parent c922f8358a
commit 993107c24c
18 changed files with 477 additions and 218 deletions

View File

@@ -11,7 +11,7 @@ import {
import AddressDisplay from '@/components/manage/AddressDisplay.vue'
import PointGoodsItem from '@/components/manage/PointGoodsItem.vue'
import { POINT_API_URL } from '@/data/constants'
import { useAuthStore } from '@/store/useAuthStore'
import { useBiliAuth } from '@/store/useBiliAuth'
import {
NAlert,
NButton,
@@ -43,7 +43,7 @@ const props = defineProps<{
}>()
const router = useRouter()
const useAuth = useAuthStore()
const useAuth = useBiliAuth()
// 移除未使用的 accountInfo
const isLoading = ref(false)
const message = useMessage()