import test2 from '../../store/module/test2'
this.$store.registerModule('test', test2, { preserveState: fales})
1.mapState
...mapState({
privacyTxtMax: state => state.test.detail
})
或者
...mapState(test ,{
privacyTxtMax: "detail"
})
2. mapActions
...mapActions({
getData: 'test/detail'
})
3.mapGetters
...mapGetters({
name: 'test/detail'
})
4.mapActions
...mapActions({
call: 'test/callAction'
})