namespaced: true
1 直接添加文件路径
this.$store.commit('knitOrder/wovenSetFieldFlag',objFlag);
2 简写直接调用
1:文件的名
2 文件里面的方法名称
computed: { 1 2
...mapGetters('productKnitSales', ['knitSalesOrder', 'currentSalesOrder', 'itemSalesOrder'])
},
methods: {
...mapActions('productKnitSales', ['getCreatedOrder', 'changeOrderItem']),
...mapMutations('productKnitSales', ['setMoreOrder', 'setHideOrder']),
或者
...mapMutations([
setFullScreen:"odes/setFullScreen"
]),
}