【发布时间】:2020-05-05 02:03:49
【问题描述】:
大家好,我正在开发一个 Vue,Vuex 使用装饰器的强类型模板项目。
由于我是整个商店的新手,我无法弄清楚如何正确配置商店以在我的组件中按预期工作。
我最终想要实现的是调用我的不同商店模块的操作,如下所示:
this.$store.nameOfMyModule.NameOfAction
this.$store.<nameOfMyModule.NameOfGetter
一个更具体的项目示例是
this.$store.tickets.tickets
this.$store.tickets.fetchTickets
这里是repo的链接
【问题讨论】:
标签: typescript vue.js vuex decorator store