From f5c7a27cd633f67e5b6843b128a31f0a9617e05f Mon Sep 17 00:00:00 2001 From: koko1108 Date: Thu, 3 Oct 2024 18:10:06 +0800 Subject: [PATCH] =?UTF-8?q?navbar=E6=95=B4=E7=90=86=20|=20api=E8=B7=AF?= =?UTF-8?q?=E5=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- src/components/navbar/Navbar.vue | 37 +++++++++++++++------------- src/components/navbar/NavbarItem.vue | 20 ++++++++++++--- 4 files changed, 39 insertions(+), 22 deletions(-) diff --git a/.env.development b/.env.development index 8d2d04b..9fe4572 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ -VITE_API_BASEURL = "http://220.132.206.5:8008" +VITE_API_BASEURL = "http://192.168.0.206:8060" VITE_FILE_API_BASEURL = "" VITE_FORGE_BASEURL = "http://localhost:5173" \ No newline at end of file diff --git a/.env.production b/.env.production index 83fdb1e..7b0e2d0 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ -VITE_API_BASEURL = "http://220.132.206.5:8008" +VITE_API_BASEURL = "http://220.132.206.5:8060" VITE_FILE_API_BASEURL = "http://220.132.206.5:8085/file" VITE_FORGE_BASEURL = "http://202.39.218.221:8080/file/netzero" \ No newline at end of file diff --git a/src/components/navbar/Navbar.vue b/src/components/navbar/Navbar.vue index f83ed9f..6dd6300 100644 --- a/src/components/navbar/Navbar.vue +++ b/src/components/navbar/Navbar.vue @@ -102,25 +102,28 @@ const src = import.meta.env.MODE === "production" ? "./logo.svg" : Logo; z-index: 0; } -.menu-box::after { - content: ""; - position: absolute; - top: -12px; - bottom: 0; - left: 25px; - right: 25px; - margin: auto; - display: block; - width: calc(100% - 50px); - height: 2px; - background-color: #7cedc1; - z-index: -10; -} .menu-box .btn-group { - background: #111; - padding: 0 10px; - margin: 0 15px; + background: transparent; + width: 95px; +} + +.menu-box li { + position: relative; +} + +.menu-box li:not(:last-child)::after { + content: ""; + position: absolute; + top: 20px; + bottom: 0; + left: 84px; + right: 0px; + display: block; + width: 25px; + height: 2px; + background-color: #7cedc1; + z-index: 0; } .menu-icon { diff --git a/src/components/navbar/NavbarItem.vue b/src/components/navbar/NavbarItem.vue index 7bf2731..8fe1069 100644 --- a/src/components/navbar/NavbarItem.vue +++ b/src/components/navbar/NavbarItem.vue @@ -70,14 +70,27 @@ onMounted(() => {