You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{runtimeConfig: {// Will be available in both server and clientpublic: {baseUrl: process.env.BASE_URL}}}
Modules:
Mixin
are accessable in all components and pages and layouts
used to share common logic between components
Store
are accessable in everywhere with this.$store or $store
// get state value this.$store.state.stateName// use mutation functionthis.$store.commit('storeName/mutationName',payload)// use action functionthis.$store.dispatch('storeName/actionName',payload)// use getter functionthis.$store.getters['storeName/getterName']
I18n
are accessable in everywhere with this.$i18n or $i18n
// get localethis.$i18n.locale// change localethis.$i18n.locale='en'// get messagethis.$t('message.hello')// in component template{{$t('message.hello')}}// get message with paramsthis.$t('message.hello',{name: 'John'})// get message with pluralizationthis.$tc('message.plural',2)