diff --git a/jsconfig.json b/jsconfig.json index 5a1f2d2..f2642f3 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -5,4 +5,4 @@ } }, "exclude": ["node_modules", "dist"] -} +} \ No newline at end of file diff --git a/src/components/index/Category.vue b/src/components/index/Category.vue index 9c4f415..9d3209a 100644 --- a/src/components/index/Category.vue +++ b/src/components/index/Category.vue @@ -1,11 +1,21 @@ - \ No newline at end of file diff --git a/src/components/index/Datascreen.vue b/src/components/index/Datascreen.vue index d4210a7..a5c368d 100644 --- a/src/components/index/Datascreen.vue +++ b/src/components/index/Datascreen.vue @@ -1,12 +1,28 @@ - \ No newline at end of file diff --git a/src/components/index/Maps.vue b/src/components/index/Maps.vue index cf28879..2e219ac 100644 --- a/src/components/index/Maps.vue +++ b/src/components/index/Maps.vue @@ -1,12 +1,28 @@ - \ No newline at end of file diff --git a/src/router.js b/src/router.js index 80bae91..a15cfc0 100644 --- a/src/router.js +++ b/src/router.js @@ -6,13 +6,20 @@ import 'nprogress/nprogress.css' NProgress.configure({ easing: 'ease', speed: 500, - showSpinner: false, + showSpinner: true, trickleSpeed: 200, minimum: 0.3 }) const style = document.createElement('style') style.innerHTML = ` + #nprogress { + z-index: 9999 !important; + position: fixed !important; + top: 0 !important; + left: 0 !important; + right: 0 !important; + } #nprogress .bar { background: #f472b6 !important; height: 3px !important; @@ -22,6 +29,10 @@ style.innerHTML = ` box-shadow: 0 0 15px #f472b6, 0 0 10px #f472b6 !important; opacity: 1 !important; } + #nprogress .spinner-icon { + border-top-color: #f472b6 !important; + border-left-color: #f472b6 !important; + } ` document.head.appendChild(style) @@ -102,7 +113,7 @@ router.beforeEach(async (to, from, next) => { document.body.appendChild(loadingNode); try { - const LoadingComponent = (await import('@/components/index/Loading.vue')).default; + const LoadingComponent = (await import('@/components/layout/Loading.vue')).default; loadingApp = createApp({ render: () => h(LoadingComponent) }); diff --git a/src/views/Index.vue b/src/views/Index.vue index aedd40f..8328a80 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/src/views/Loading.vue b/src/views/Loading.vue index a751a1f..c2f8db0 100644 --- a/src/views/Loading.vue +++ b/src/views/Loading.vue @@ -16,4 +16,5 @@ onUnmounted(() => { clearTimeout(timer) } }) - \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/NotFound.vue b/src/views/NotFound.vue index 30fa772..6ad7a23 100644 --- a/src/views/NotFound.vue +++ b/src/views/NotFound.vue @@ -44,7 +44,7 @@ onMounted(() => { -