Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@
<noscript id="inject-styles-here"></noscript>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" class="loader">
<div style="position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background-color: #fff;">
<div
style="
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
"
>
Pro React Admin. Loading...
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/components/stateless/IconCloud/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ const IconCloud = ({ icons, images }) => {
startTime: performance.now(),
duration,
})
return
}
})

Expand Down
8 changes: 4 additions & 4 deletions src/components/stateless/Meteors/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Meteors = ({ starCount = 50, primaryColor = '#ffffff', className = '' }) =
{stars.map((star) => (
<motion.div
key={star.id}
className={`absolute h-[2px] rounded-full bg-gradient-to-r from-current to-transparent drop-shadow-[0_0_6px_currentColor]`}
className="absolute h-[2px] rounded-full bg-gradient-to-r from-current to-transparent drop-shadow-[0_0_6px_currentColor]"
style={{
top: `${star.topOffset}vh`,
width: '6em',
Expand All @@ -46,19 +46,19 @@ const Meteors = ({ starCount = 50, primaryColor = '#ffffff', className = '' }) =
>
<div className="relative h-full w-full">
<div
className={`rounded-inherit animate-blink absolute top-0 left-[calc(-1em)] h-full w-[1em] bg-gradient-to-r from-transparent via-current to-transparent`}
className="rounded-inherit animate-blink absolute top-0 left-[calc(-1em)] h-full w-[1em] bg-gradient-to-r from-transparent via-current to-transparent"
style={{
willChange: 'transform, opacity',
}}
/>
<div
className={`rounded-inherit animate-blink absolute top-0 left-[calc(-1em)] h-full w-[1em] rotate-45 bg-gradient-to-r from-transparent via-current to-transparent`}
className="rounded-inherit animate-blink absolute top-0 left-[calc(-1em)] h-full w-[1em] rotate-45 bg-gradient-to-r from-transparent via-current to-transparent"
style={{
willChange: 'transform, opacity',
}}
/>
<div
className={`rounded-inherit animate-blink absolute top-0 left-[calc(-1em)] h-full w-[1em] -rotate-45 bg-gradient-to-r from-transparent via-current to-transparent`}
className="rounded-inherit animate-blink absolute top-0 left-[calc(-1em)] h-full w-[1em] -rotate-45 bg-gradient-to-r from-transparent via-current to-transparent"
style={{
willChange: 'transform, opacity',
}}
Expand Down
3 changes: 1 addition & 2 deletions src/routers/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@
*/

import React from 'react'
import { mainLayoutRoute } from './modules/layout.routes'
import { mainLayoutRoute, layoutRoutes } from './modules/layout.routes'
import { authRoutes } from './modules/auth.routes'
import { businessRoutes } from './modules/business.routes'
import { uiRoutes } from './modules/ui.routes'
import { chartRoutes } from './modules/chart.routes'
import { nestedRoutes } from './modules/nested.routes'
import { layoutRoutes } from './modules/layout.routes'
import { errorRoutes } from './modules/error.routes'

// 整合主布局的子路由
Expand Down
2 changes: 1 addition & 1 deletion src/service/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ service.interceptors.request.use(
const token = authService.getToken()
if (token) {
config.headers = config.headers || {}
config.headers['Authorization'] = `Bearer ${token}`
config.headers.Authorization = `Bearer ${token}`
// console.log('自动添加 token:', token)
logger.log('自动添加 token:', token)
}
Expand Down
Loading