Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
0ebb7750
Commit
0ebb7750
authored
Jun 19, 2023
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix](全局):菜单跳转调整
parent
d8a25e3f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
.beagle/nginx.conf
.beagle/nginx.conf
+2
-2
index.html
index.html
+1
-1
src/components/bg-menu.vue
src/components/bg-menu.vue
+3
-3
src/page/login/index1.vue
src/page/login/index1.vue
+1
-1
src/request/http.js
src/request/http.js
+1
-1
vite.config.js
vite.config.js
+2
-2
No files found.
.beagle/nginx.conf
View file @
0ebb7750
...
...
@@ -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
;
}
}
...
...
index.html
View file @
0ebb7750
...
...
@@ -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>
...
...
src/components/bg-menu.vue
View file @
0ebb7750
...
...
@@ -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,
...
...
src/page/login/index1.vue
View file @
0ebb7750
...
...
@@ -92,7 +92,7 @@ export default {
generateRoutes
()
// this.$router.push("/");
//跳转到工作台页面
window
.
location
.
href
=
'
/
apaas/portal
/ui/#/
'
window
.
location
.
href
=
'
/
so/manage
/ui/#/
'
}
});
},
...
...
src/request/http.js
View file @
0ebb7750
...
...
@@ -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',
...
...
vite.config.js
View file @
0ebb7750
...
...
@@ -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
"
,
//打包输出静态文件
},
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment