From d28e4e194c847e31a9645126c34a28cd59b73539 Mon Sep 17 00:00:00 2001 From: moecinnamo Date: Mon, 15 Dec 2025 17:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BC=B9=E7=AA=97=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsconfig.json | 2 +- src/components/index/Category.vue | 15 +- src/components/index/Components.vue | 41 +++++- src/components/index/Datascreen.vue | 26 +++- src/components/index/Datasource.vue | 15 +- src/components/index/Files.vue | 14 +- src/components/index/Leftbar.vue | 3 +- src/components/index/Main.vue | 58 +++++--- src/components/index/Maps.vue | 24 +++- src/components/index/Nodata.vue | 2 +- src/components/index/Record.vue | 14 +- src/components/index/Tools.vue | 7 +- src/components/index/Topbar.vue | 2 +- src/components/index/Variables.vue | 14 +- src/components/{index => layout}/Loading.vue | 22 ++- src/components/layout/Modal.vue | 144 +++++++++++++++++++ src/router.js | 15 +- src/views/Index.vue | 30 +++- src/views/Loading.vue | 3 +- src/views/NotFound.vue | 2 +- 20 files changed, 395 insertions(+), 58 deletions(-) rename src/components/{index => layout}/Loading.vue (68%) create mode 100644 src/components/layout/Modal.vue 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(() => { -