用了modules之后,mapstate那樣寫找不到,要這樣寫,把對應(yīng)的module加上 大坑
...mapState({
type: state => state.step1.type
}),
//或者 傳遞2個(gè)參數(shù) 第一個(gè)傳模塊名
...mapState('moduleName',{
type: state => state.step1.type
}),
用了modules之后,mapstate那樣寫找不到,要這樣寫,把對應(yīng)的module加上 大坑
...mapState({
type: state => state.step1.type
}),
//或者 傳遞2個(gè)參數(shù) 第一個(gè)傳模塊名
...mapState('moduleName',{
type: state => state.step1.type
}),