| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapGetters } from 'vuex'; |
| | | import topLock from './top-lock.vue'; |
| | | import topMenu from './top-menu.vue'; |
| | | import topSearch from './top-search.vue'; |
| | | import topTheme from './top-theme.vue'; |
| | | import topLogs from './top-logs.vue'; |
| | | import topColor from './top-color.vue'; |
| | | import topLang from './top-lang.vue'; |
| | | import topFull from './top-full.vue'; |
| | | import topQna from './top-qna.vue'; |
| | | import topSetting from '../setting.vue'; |
| | | import { mapGetters } from 'vuex' |
| | | import topLock from './top-lock.vue' |
| | | import topMenu from './top-menu.vue' |
| | | import topSearch from './top-search.vue' |
| | | import topTheme from './top-theme.vue' |
| | | import topLogs from './top-logs.vue' |
| | | import topColor from './top-color.vue' |
| | | import topLang from './top-lang.vue' |
| | | import topFull from './top-full.vue' |
| | | import topQna from './top-qna.vue' |
| | | import topSetting from '../setting.vue' |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | topSetting, |
| | | }, |
| | | name: 'top', |
| | | data() { |
| | | return {}; |
| | | data () { |
| | | return {} |
| | | }, |
| | | filters: {}, |
| | | created() {}, |
| | | created () { }, |
| | | computed: { |
| | | ...mapGetters([ |
| | | 'setting', |
| | | 'userInfo', |
| | | 'tagWel', |
| | | 'tagList', |
| | | 'bsTagList', |
| | | 'isCollapse', |
| | | 'tag', |
| | | 'logsLen', |
| | |
| | | ]), |
| | | }, |
| | | methods: { |
| | | setCollapse() { |
| | | this.$store.commit('SET_COLLAPSE'); |
| | | setCollapse () { |
| | | this.$store.commit('SET_COLLAPSE') |
| | | }, |
| | | logout() { |
| | | logout () { |
| | | this.$confirm(this.$t('logoutTip'), this.$t('tip'), { |
| | | confirmButtonText: this.$t('submitText'), |
| | | cancelButtonText: this.$t('cancelText'), |
| | | type: 'warning', |
| | | }).then(() => { |
| | | this.$store.dispatch('LogOut').then(() => { |
| | | this.$router.push({ path: '/login' }); |
| | | }); |
| | | }); |
| | | this.$router.push({ path: '/login' }) |
| | | }) |
| | | }) |
| | | }, |
| | | }, |
| | | }; |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |