mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 15:10:32 +00:00
Update LoadingProgress.js
This commit is contained in:
@@ -11,7 +11,7 @@ export default function LoadingProgress() {
|
|||||||
// 加载进度条
|
// 加载进度条
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
loadExternalResource(
|
loadExternalResource(
|
||||||
'https://cdn.bootcdn.net/ajax/libs/nprogress/0.2.0/nprogress.min.js',
|
'https://cdnjs.snrat.com/ajax/libs/nprogress/0.2.0/nprogress.min.js',
|
||||||
'js'
|
'js'
|
||||||
).then(() => {
|
).then(() => {
|
||||||
if (window.NProgress) {
|
if (window.NProgress) {
|
||||||
@@ -19,7 +19,7 @@ export default function LoadingProgress() {
|
|||||||
// 调速
|
// 调速
|
||||||
window.NProgress.settings.minimun = 0.1
|
window.NProgress.settings.minimun = 0.1
|
||||||
loadExternalResource(
|
loadExternalResource(
|
||||||
'https://cdn.bootcdn.net/ajax/libs/nprogress/0.2.0/nprogress.min.css',
|
'https://cdnjs.snrat.com/ajax/libs/nprogress/0.2.0/nprogress.min.css',
|
||||||
'css'
|
'css'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user