model.js 414 B

12345678910111213141516171819
  1. import { commServer } from './server.js';
  2. export default {
  3. namespaced: true,
  4. state: {
  5. checkedResponsibleList:[]
  6. },
  7. mutations: {
  8. updateCheckedResponsibleList (state,arr){
  9. state.checkedResponsibleList = arr;
  10. }
  11. },
  12. actions: {
  13. commActions({ commit, state }, { payload }) {
  14. // payload = {key,data} // data是请求数据,key是请求接口id
  15. return commServer(payload);
  16. },
  17. }
  18. }