From 0ebb775037108679a61c5754b506d5cac8a59758 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Mon, 19 Jun 2023 10:49:08 +0800 Subject: [PATCH] =?UTF-8?q?[fix](=E5=85=A8=E5=B1=80):=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .beagle/nginx.conf | 4 ++-- index.html | 2 +- src/components/bg-menu.vue | 6 +++--- src/page/login/index1.vue | 2 +- src/request/http.js | 2 +- vite.config.js | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.beagle/nginx.conf b/.beagle/nginx.conf index a540e85..a00f0a0 100644 --- a/.beagle/nginx.conf +++ b/.beagle/nginx.conf @@ -28,11 +28,11 @@ http { # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; - location /apaas/ui { + location /so/manage/ui { root /usr/share/nginx/html; index index.html index.htm; - try_files $uri $uri/ /apaas/ui/index.html; + try_files $uri $uri/ /so/manage/ui/index.html; } } diff --git a/index.html b/index.html index b91f9d9..4e75c2d 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - BD-aPaas + 智能运维管理平台
diff --git a/src/components/bg-menu.vue b/src/components/bg-menu.vue index 33ddada..f55a17a 100644 --- a/src/components/bg-menu.vue +++ b/src/components/bg-menu.vue @@ -150,7 +150,7 @@ export default { this.$router.push(path); }, gotoPage() { - window.open("/apaas/portal/ui/#/", "_blank"); + window.open("/so/manage/ui/#/", "_blank"); }, changezz(item) { this.$trace.setOptionValue("appID", item.value); @@ -174,7 +174,7 @@ export default { if (n == "logout") { this.$axios.post(`/apaas/system/v5/user/logout`).then((res) => { if (res.data.code == "200") { - window.location.href = `/apaas/manage/ui/#/login`; + window.location.href = `/so/manage/ui/#/login`; this.$store.commit("setUserInfo", null); clearCookie("bgToken"); this.$message.success("退出成功"); @@ -185,7 +185,7 @@ export default { }); } else if (n == "login") { let path = this.$route.path; - window.location.href = `/apaas/manage/ui/#/login?redirect=${path}`; + window.location.href = `/so/manage/ui/#/login?redirect=${path}`; } else { //是否有子路由,有则寻找子路由的第一个进行跳转,无则直接进行跳转 //使用childMenuAction是模拟template中,子路径点击跳转使用childMenuAction, diff --git a/src/page/login/index1.vue b/src/page/login/index1.vue index 03fc8bc..d1d9d7a 100644 --- a/src/page/login/index1.vue +++ b/src/page/login/index1.vue @@ -92,7 +92,7 @@ export default { generateRoutes() // this.$router.push("/"); //跳转到工作台页面 - window.location.href = '/apaas/portal/ui/#/' + window.location.href = '/so/manage/ui/#/' } }); }, diff --git a/src/request/http.js b/src/request/http.js index 88050ee..5be5a78 100644 --- a/src/request/http.js +++ b/src/request/http.js @@ -28,7 +28,7 @@ const toLogin = () => { let path = router.currentRoute.value.path; //白名单中的401不做跳转 if (!store.state.whiteList.includes(path)) { - window.location.href = `/apaas/manage/ui/#/login`; + window.location.href = `/so/manage/ui/#/login`; } // router.replace({ // path: '/login', diff --git a/vite.config.js b/vite.config.js index 47d2e4f..b555bb8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,7 +10,7 @@ function resolve_path(dir) { export default { plugins: [vue()], //本地运行基础路径,如:http://localhost:5173/apaas/ui/ - base: "/apaas/manage/ui/", + base: "/so/manage/ui/", clearScreen: false, resolve: { //别名,代码引入时方便引入 @@ -68,7 +68,7 @@ export default { }, }, build: { - outDir: "dist/apaas/manage/ui", //打包输出文件夹 + outDir: "dist/so/manage/ui", //打包输出文件夹 assetsDir: "static", //打包输出静态文件 }, }; -- 2.26.0