Skip to content

Commit 5ea4309

Browse files
committed
mark vuex computed for devtools
1 parent fdb8ee0 commit 5ea4309

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/helpers.js

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export const mapState = normalizeNamespace((namespace, states) => {
1616
? val.call(this, state, getters)
1717
: state[val]
1818
}
19+
// mark vuex getter for devtools
20+
res[key].vuex = true
1921
})
2022
return res
2123
})
@@ -48,6 +50,8 @@ export const mapGetters = normalizeNamespace((namespace, getters) => {
4850
}
4951
return this.$store.getters[val]
5052
}
53+
// mark vuex getter for devtools
54+
res[key].vuex = true
5155
})
5256
return res
5357
})

0 commit comments

Comments
 (0)