vuex的分模块应用,为什么我打印this.$store.state.home.floors为undefined

home.js文件

index.js

main.js上进行挂载

在这里引入floors时候floors显示没有定义

vuex的分模块应用,为什么我打印this.$store.state.home.floors为undefined

home.js文件


main.js上进行挂载

在这里引入floors时候floors显示没有定义

感谢各位解决问题,最后发现自己是将module少写了s,应该是modules,真的会被自己蠢死
