import { useStore } from 'vue'
const store =useStore()
onBeforMount(()=>{
store.commit("TabbarModul/chnageTabbar",false)//开启了命名空间
})```
另一个
```javascript
import { useStore } from 'vue'
const store =useStore()
if(store.state.CinemaModule.cinemaList.length===0){
//以前this.$store.dispatch("getCinemaLsit","参数演示")
//现在
store.dispatch("CinemaModule/getCinemaList","参数演示")
}
注意:
vca中不支持map辅助函数