feat: 新增首页和图片资源

This commit is contained in:
JiaJun
2026-04-24 18:02:42 +08:00
parent bd92f10b83
commit 9127a06d4a
179 changed files with 3424 additions and 101 deletions

View File

@@ -8,7 +8,7 @@ import {
handleUnauthorizedSession,
tryRefreshAuthSession,
} from '@/lib/auth/auth-session'
import { useAuthStore } from '@/store/auth-store'
import { useAuthStore } from '@/store/auth'
import { ApiError } from './api-error'
import type { ApiResponse } from './types'

View File

@@ -1,5 +1,5 @@
import type { AuthSessionInput, AuthUser } from '@/store/auth-store'
import { useAuthStore } from '@/store/auth-store'
import type { AuthSessionInput, AuthUser } from '@/store/auth'
import { useAuthStore } from '@/store/auth'
export type CurrentUserInitializer = () => Promise<AuthUser | null>
export type RefreshSessionHandler = (

View File

@@ -2,7 +2,7 @@ import { redirect } from '@tanstack/react-router'
import type { AppLanguage } from '@/i18n'
import { getPreferredLanguage } from '@/i18n'
import { useAuthStore } from '@/store/auth-store'
import { useAuthStore } from '@/store/auth'
import { initializeAuthSession, isAuthenticated } from './auth-session'