model.js
806 Bytes
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-12-27 16:50:15
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-12-28 20:29:30
* @FilePath: \scrm-micro-peregrination\src\store\modules\model.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import api from '@/api'
export default {
namespaced: true,
state: {
modelList: null
},
mutations: {
// 设置模块阶段
SET_MODEL(state, data) {
state.modelList = data
}
},
actions: {
// 设置分页大小
async setModelList({ commit }, data) {
const res = await api.journeyModel.SopTplNodeProtosList({})
commit('SET_MODEL', res)
}
}
}