如果我像这样在我的组件中尝试this .$session.get(SessionKeys.Cart):<template>...</template><script>...export default {...methods: {add(item) {console.log(this.$session.get(SessionKeys.Cart)...}}}</script>它有效。我成功获取了会话
2018-09-27
我想按如下方式设置 Vuex 突变:export default {props: {store: String},methods: {...mapMutations({changeModel: `${this.store}/changeModel`})}}但是我发现了错误:Uncaught TypeError: Cannot read property 'store' of undefined如何
2018-08-29