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
13e93eed
Commit
13e93eed
authored
Oct 25, 2022
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转交互
parent
79c3a4a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
5 deletions
+28
-5
src/App.vue
src/App.vue
+1
-1
src/components/bg-menu.vue
src/components/bg-menu.vue
+8
-3
vite.config.js
vite.config.js
+19
-1
No files found.
src/App.vue
View file @
13e93eed
...
...
@@ -46,7 +46,7 @@ export default {
return
this
.
$store
.
state
.
menuObj
},
navShow
(){
return
false
||!
[
'
/404
'
,
'
/login
'
].
includes
(
this
.
$route
.
path
)
return
false
||!
[
'
/
'
,
'
/
404
'
,
'
/login
'
].
includes
(
this
.
$route
.
path
)
},
pageShow
(){
return
false
||!
[
'
/404
'
,
'
/login
'
].
includes
(
this
.
$route
.
path
)
...
...
src/components/bg-menu.vue
View file @
13e93eed
...
...
@@ -49,7 +49,7 @@
<!-- 信息 -->
<!-- 购物车 -->
<!-- 用户中心 -->
<div
class=
"user-center nav-item"
>
<div
class=
"user-center nav-item"
@
click=
"menuAction(systemMenu[0]?systemMenu[0].path:'',systemMenu[0])"
>
<span
class=
"user-icon"
>
<img
style=
"width:24px;height:24px;border-radius:50%;vertical-align:middle;"
v-if=
"userInfo&&userInfo.logo"
:src=
"userInfo&&userInfo.logo"
/>
<img
style=
"width:24px;height:24px;border-radius:50%;vertical-align:middle;"
v-else
src=
"../assets/imgs/home_ic_user.png"
/>
...
...
@@ -68,11 +68,11 @@
v-for=
"(item, index) in systemMenu"
class=
"menu-item text_clip"
:key=
"index + 700"
@
click=
"menuAction(item.path,item)"
@
click
.stop
=
"menuAction(item.path,item)"
>
{{
item
.
menuName
}}
</div>
<div
class=
"menu-item text_clip"
@
click=
"menuAction('logout')"
>
<div
class=
"menu-item text_clip"
@
click
.stop
=
"menuAction('logout')"
>
退出登录
</div>
</div>
...
...
@@ -194,6 +194,11 @@ export default {
// })
},
menuAction
(
n
,
parent
)
{
debugger
//不存在则不跳转
if
(
!
n
){
return
}
if
(
n
==
"
logout
"
)
{
this
.
$axios
.
get
(
`/apaas/system/logout`
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
'
200
'
){
...
...
vite.config.js
View file @
13e93eed
...
...
@@ -35,7 +35,25 @@ export default {
rewrite
:
path
=>
path
.
replace
(
/^
\/
apaas
\/
system/
,
''
),
// 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
changeOrigin
:
true
,
// true/false, Default: false - changes the origin of the host header to the target URL
secure
:
false
,
//解决证书缺失问题
}
},
'
/apaas/portal
'
:{
target
:
'
https://apaas5.wodcloud.com/apaas/portal
'
,
// 所要代理的目标地址
rewrite
:
path
=>
path
.
replace
(
/^
\/
apaas
\/
portal/
,
''
),
// 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
changeOrigin
:
true
,
// true/false, Default: false - changes the origin of the host header to the target URL
secure
:
false
,
//解决证书缺失问题
},
'
/apaas/service
'
:{
target
:
'
https://apaas5.wodcloud.com/apaas/service
'
,
// 所要代理的目标地址
rewrite
:
path
=>
path
.
replace
(
/^
\/
apaas
\/
service/
,
''
),
// 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
changeOrigin
:
true
,
// true/false, Default: false - changes the origin of the host header to the target URL
secure
:
false
,
//解决证书缺失问题
},
'
/apaas/common
'
:{
target
:
'
https://apaas5.wodcloud.com/apaas/common
'
,
// 所要代理的目标地址
rewrite
:
path
=>
path
.
replace
(
/^
\/
apaas
\/
common/
,
''
),
// 重写传过来的path路径,比如 `/api/index/1?id=10&name=zs`(注意:path路径最前面有斜杠(/),因此,正则匹配的时候不要忘了是斜杠(/)开头的;选项的 key 也是斜杠(/)开头的)
changeOrigin
:
true
,
// true/false, Default: false - changes the origin of the host header to the target URL
secure
:
false
,
//解决证书缺失问题
},
}
},
build
:{
...
...
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