Fortunately, Vuex provides a handy tool called mapState : const NumUnreadMessages = { // ... computed: Vuex.mapState({ unreadCounter: state => state.
確定! 回上一頁