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

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

parent d8a25e3f
......@@ -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;
}
}
......
......@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BD-aPaas</title>
<title>智能运维管理平台</title>
</head>
<body>
<div id="app"></div>
......
......@@ -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,
......
......@@ -92,7 +92,7 @@ export default {
generateRoutes()
// this.$router.push("/");
//跳转到工作台页面
window.location.href = '/apaas/portal/ui/#/'
window.location.href = '/so/manage/ui/#/'
}
});
},
......
......@@ -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',
......
......@@ -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", //打包输出静态文件
},
};
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