Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e8759a2d
authored
2023-04-25 16:09:08 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
442acf20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
jsconfig.json
public/config.json
src/layout/components/Navbar.vue
jsconfig.json
0 → 100644
View file @
e8759a2
{
"typeAcquisition"
:
{
"include"
:
[
"wechat-miniprogram"
]
}
}
\ No newline at end of file
public/config.json
View file @
e8759a2
{
"SERVERAPI"
:
"/bdcdj"
"SERVERAPI"
:
"/bdcdj
-38
"
}
\ No newline at end of file
...
...
src/layout/components/Navbar.vue
View file @
e8759a2
...
...
@@ -21,7 +21,7 @@
</el-dropdown>
<svg-icon
class=
"shutdown"
icon-class=
'shutdown'
/>
<svg-icon
class=
"shutdown"
@
click
.
native=
"logout"
icon-class=
'shutdown'
/>
</div>
</div>
<NoticeBar
class=
"NoticeBar"
:noticeList=
"noticeList"
/>
...
...
@@ -38,7 +38,10 @@ export default {
NoticeBar
},
computed
:
{
...
mapGetters
([
'sidebar'
,
'avatar'
,
'name'
])
...
mapGetters
([
'sidebar'
,
'avatar'
,
'name'
]),
baseUrl
()
{
return
window
.
baseUrl
;
},
},
data
()
{
return
{
...
...
@@ -61,6 +64,7 @@ export default {
window
.
removeEventListener
(
'message'
)
},
methods
:
{
queryNoticeList
()
{
getHomeNoticeList
().
then
(
res
=>
{
if
(
res
.
result
)
{
...
...
@@ -68,6 +72,12 @@ export default {
}
})
},
logout
()
{
const
url
=
baseUrl
+
"/sso-logout?redirect_uri="
+
baseUrl
+
"/admin"
;
window
.
open
(
url
,
"_self"
);
sessionStorage
.
removeItem
(
"navList"
);
},
themeChange
(
val
)
{
this
.
$store
.
dispatch
(
'app/updateTheme'
,
val
)
},
...
...
Please
register
or
sign in
to post a comment