state 用來存儲數(shù)據(jù)
getter相當(dāng)于計算屬性
mutation 定義方法操作state里面的數(shù)據(jù)
actions? 異步操作數(shù)據(jù) 一般還是需要通過mutation操作數(shù)據(jù)
modules 模塊化vuex
state 用來存儲數(shù)據(jù)
getter相當(dāng)于計算屬性
mutation 定義方法操作state里面的數(shù)據(jù)
actions? 異步操作數(shù)據(jù) 一般還是需要通過mutation操作數(shù)據(jù)
modules 模塊化vuex