1
Showing
3 changed files
with
20 additions
and
3 deletions
jsconfig.json
0 → 100644
| ... | @@ -21,7 +21,7 @@ | ... | @@ -21,7 +21,7 @@ |
| 21 | </el-dropdown> | 21 | </el-dropdown> |
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | <svg-icon class="shutdown" icon-class='shutdown' /> | 24 | <svg-icon class="shutdown" @click.native="logout" icon-class='shutdown' /> |
| 25 | </div> | 25 | </div> |
| 26 | </div> | 26 | </div> |
| 27 | <NoticeBar class="NoticeBar" :noticeList="noticeList" /> | 27 | <NoticeBar class="NoticeBar" :noticeList="noticeList" /> |
| ... | @@ -38,7 +38,10 @@ export default { | ... | @@ -38,7 +38,10 @@ export default { |
| 38 | NoticeBar | 38 | NoticeBar |
| 39 | }, | 39 | }, |
| 40 | computed: { | 40 | computed: { |
| 41 | ...mapGetters(['sidebar', 'avatar', 'name']) | 41 | ...mapGetters(['sidebar', 'avatar', 'name']), |
| 42 | baseUrl () { | ||
| 43 | return window.baseUrl; | ||
| 44 | }, | ||
| 42 | }, | 45 | }, |
| 43 | data () { | 46 | data () { |
| 44 | return { | 47 | return { |
| ... | @@ -61,6 +64,7 @@ export default { | ... | @@ -61,6 +64,7 @@ export default { |
| 61 | window.removeEventListener('message') | 64 | window.removeEventListener('message') |
| 62 | }, | 65 | }, |
| 63 | methods: { | 66 | methods: { |
| 67 | |||
| 64 | queryNoticeList () { | 68 | queryNoticeList () { |
| 65 | getHomeNoticeList().then(res => { | 69 | getHomeNoticeList().then(res => { |
| 66 | if (res.result) { | 70 | if (res.result) { |
| ... | @@ -68,6 +72,12 @@ export default { | ... | @@ -68,6 +72,12 @@ export default { |
| 68 | } | 72 | } |
| 69 | }) | 73 | }) |
| 70 | }, | 74 | }, |
| 75 | logout () { | ||
| 76 | const url = baseUrl + "/sso-logout?redirect_uri=" + baseUrl + "/admin"; | ||
| 77 | window.open(url, "_self"); | ||
| 78 | sessionStorage.removeItem("navList"); | ||
| 79 | }, | ||
| 80 | |||
| 71 | themeChange (val) { | 81 | themeChange (val) { |
| 72 | this.$store.dispatch('app/updateTheme', val) | 82 | this.$store.dispatch('app/updateTheme', val) |
| 73 | }, | 83 | }, | ... | ... |
-
Please register or sign in to post a comment