Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- computed: {
- ...mapState({
- user: 'user.data',
- castingSpell: 'spellOptions.castingSpell',
- isRunningYesterdailies: 'isRunningYesterdailies',
- }),
- }
- export function mapState (states) {
- const res = {};
- normalizeMap(states).forEach(({ key, val }) => {
- res[key] = function mappedState () {
- return typeof val === 'function' ?
- val.call(this, this.$store.state, this.$store.getters) :
- get(this.$store.state, val);
- };
- });
- return res;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement