1👍
You may want to inject systemConfigApiService
and use it to retrieve the config values. getValues
takes a second argument for the sales channel id.
Component.register('my-component', {
inject: ['systemConfigApiService'],
methods: {
getConfig(salesChannelId) {
const values = this.systemConfigApiService
.getValues('MyPlugin.config', salesChannelId);
return values.myKey;
},
},
}
- [Vuejs]-Value of vuex getter not updating when switching between routed components
- [Vuejs]-Vue.js get unknown Json key for v-for
Source:stackexchange.com