Commit 0ebb7750 authored by 张俊's avatar 张俊

[fix](全局):菜单跳转调整

parent d8a25e3f
...@@ -28,11 +28,11 @@ http { ...@@ -28,11 +28,11 @@ http {
# redirect server error pages to the static page /50x.html # redirect server error pages to the static page /50x.html
# #
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
location /apaas/ui { location /so/manage/ui {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;
try_files $uri $uri/ /apaas/ui/index.html; try_files $uri $uri/ /so/manage/ui/index.html;
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BD-aPaas</title> <title>智能运维管理平台</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
this.$router.push(path); this.$router.push(path);
}, },
gotoPage() { gotoPage() {
window.open("/apaas/portal/ui/#/", "_blank"); window.open("/so/manage/ui/#/", "_blank");
}, },
changezz(item) { changezz(item) {
this.$trace.setOptionValue("appID", item.value); this.$trace.setOptionValue("appID", item.value);
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
if (n == "logout") { if (n == "logout") {
this.$axios.post(`/apaas/system/v5/user/logout`).then((res) => { this.$axios.post(`/apaas/system/v5/user/logout`).then((res) => {
if (res.data.code == "200") { if (res.data.code == "200") {
window.location.href = `/apaas/manage/ui/#/login`; window.location.href = `/so/manage/ui/#/login`;
this.$store.commit("setUserInfo", null); this.$store.commit("setUserInfo", null);
clearCookie("bgToken"); clearCookie("bgToken");
this.$message.success("退出成功"); this.$message.success("退出成功");
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
}); });
} else if (n == "login") { } else if (n == "login") {
let path = this.$route.path; let path = this.$route.path;
window.location.href = `/apaas/manage/ui/#/login?redirect=${path}`; window.location.href = `/so/manage/ui/#/login?redirect=${path}`;
} else { } else {
//是否有子路由,有则寻找子路由的第一个进行跳转,无则直接进行跳转 //是否有子路由,有则寻找子路由的第一个进行跳转,无则直接进行跳转
//使用childMenuAction是模拟template中,子路径点击跳转使用childMenuAction, //使用childMenuAction是模拟template中,子路径点击跳转使用childMenuAction,
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
generateRoutes() generateRoutes()
// this.$router.push("/"); // this.$router.push("/");
//跳转到工作台页面 //跳转到工作台页面
window.location.href = '/apaas/portal/ui/#/' window.location.href = '/so/manage/ui/#/'
} }
}); });
}, },
......
...@@ -28,7 +28,7 @@ const toLogin = () => { ...@@ -28,7 +28,7 @@ const toLogin = () => {
let path = router.currentRoute.value.path; let path = router.currentRoute.value.path;
//白名单中的401不做跳转 //白名单中的401不做跳转
if (!store.state.whiteList.includes(path)) { if (!store.state.whiteList.includes(path)) {
window.location.href = `/apaas/manage/ui/#/login`; window.location.href = `/so/manage/ui/#/login`;
} }
// router.replace({ // router.replace({
// path: '/login', // path: '/login',
......
...@@ -10,7 +10,7 @@ function resolve_path(dir) { ...@@ -10,7 +10,7 @@ function resolve_path(dir) {
export default { export default {
plugins: [vue()], plugins: [vue()],
//本地运行基础路径,如:http://localhost:5173/apaas/ui/ //本地运行基础路径,如:http://localhost:5173/apaas/ui/
base: "/apaas/manage/ui/", base: "/so/manage/ui/",
clearScreen: false, clearScreen: false,
resolve: { resolve: {
//别名,代码引入时方便引入 //别名,代码引入时方便引入
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
}, },
}, },
build: { build: {
outDir: "dist/apaas/manage/ui", //打包输出文件夹 outDir: "dist/so/manage/ui", //打包输出文件夹
assetsDir: "static", //打包输出静态文件 assetsDir: "static", //打包输出静态文件
}, },
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment