import urlAlias from '../url' import request from '../request' const { orderRead } = urlAlias const state = { orderInfo: {} } const mutations = { INIT: (state, orderInfo) => { state.orderInfo = orderInfo } } const actions = { getOrderInfo({ commit }, param) { request({ url: orderRead, data: param, success: (res) => { commit("INIT", res.data.data) console.log('res',res) } }) } } export default { namespaced: true, state, mutations, actions }