123456789101112131415161718 |
- import { commServer } from './server.js';
- export default {
- namespaced: true,
- state: {
- },
- mutations: {
- changeBaseInfo(state, { baseInfo }) {
- state.baseInfo = baseInfo;
- },
- },
- actions: {
- commActions({ commit, state }, { payload }) {
- // payload = {key,data} // data是请求数据,key是请求接口id
- return commServer(payload);
- },
- }
- }
|