[Vue warn]: Property or method "$store" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
vue2要下载vuex3版本,默认下载不加版本号的话会下载vuex4版本,所以卸载vuex4后安装vuex3即可
npm uninstall vuex
npm i vuex@3