今天将emit/on方式传值修改为使用vuex,改完后发现个问题:[Vue warn]: Error in render: "TypeError: Cannot read property 'getters' of undefined"

Cannot read property getters of undefined.jpg

        查了下,原来是在main.js中写少了注册store

        解决getters找不到.jpg