fix: set global Empty description to 暂无数据 in ConfigProvider
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
b80b5e0c13
commit
3b936d6cb0
@ -3,6 +3,7 @@ import { BrowserRouter, Routes, Route } from 'react-router-dom'
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
||||
import { ConfigProvider } from 'antd'
|
||||
import zhCN from 'antd/locale/zh_CN'
|
||||
import { Empty } from 'antd'
|
||||
import { AuthProvider } from './contexts/AuthContext'
|
||||
import AuthGuard from './components/AuthGuard'
|
||||
import PermissionGuard from './components/PermissionGuard'
|
||||
@ -52,7 +53,7 @@ const queryClient = new QueryClient()
|
||||
function App() {
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<ConfigProvider locale={zhCN}>
|
||||
<ConfigProvider locale={zhCN} renderEmpty={() => <Empty description="暂无数据" />}>
|
||||
<AuthProvider>
|
||||
<BrowserRouter>
|
||||
<Suspense fallback={<PageLoading />}>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user