e8759a2d by renchao@pashanhoo.com

1

1 parent 442acf20
{
"typeAcquisition": {
"include": [
"wechat-miniprogram"
]
}
}
\ No newline at end of file
{
"SERVERAPI": "/bdcdj"
"SERVERAPI": "/bdcdj-38"
}
\ No newline at end of file
......
......@@ -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)
},
......