zhangxiao
2024-08-07 b0825070ef2c080dc51e5e86c6f2b57ed169da5e
1
2
3
4
5
6
7
8
9
10
11
import Mock from 'mockjs';
import setupMock, { successResponseWrap } from '@/utils/setup-mock';
 
setupMock({
  setup() {
    // submit
    Mock.mock(new RegExp('/api/channel-form/submit'), () => {
      return successResponseWrap('ok');
    });
  },
});