AppAdmin.js 639 B

1234567891011121314151617181920212223
  1. import GlobalNoticeList from 'src/components/global_notice_list/global_notice_list.vue'
  2. import SettingsModalAdminContent from 'src/components/settings_modal/settings_modal_admin_content.vue'
  3. export default {
  4. name: 'app',
  5. components: {
  6. SettingsModalAdminContent,
  7. GlobalNoticeList
  8. },
  9. data: () => ({
  10. mobileActivePanel: 'timeline'
  11. }),
  12. created () {
  13. // Load the locale from the storage
  14. this.$store.dispatch('setOption', { name: 'interfaceLanguage', value: 'en_US' })
  15. },
  16. computed: {
  17. currentUser () {
  18. console.log({ ...this.$store.state })
  19. return this.$store.state.users.currentUser
  20. }
  21. }
  22. }