Skip to content

Commit

Permalink
mark vuex computed for devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 20, 2017
1 parent fdb8ee0 commit 5ea4309
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export const mapState = normalizeNamespace((namespace, states) => {
? val.call(this, state, getters)
: state[val]
}
// mark vuex getter for devtools
res[key].vuex = true
})
return res
})
Expand Down Expand Up @@ -48,6 +50,8 @@ export const mapGetters = normalizeNamespace((namespace, getters) => {
}
return this.$store.getters[val]
}
// mark vuex getter for devtools
res[key].vuex = true
})
return res
})
Expand Down

0 comments on commit 5ea4309

Please sign in to comment.