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

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

img

home.js文件

img


index.js

img

main.js上进行挂载

img

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

img

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

img