File tree 1 file changed +24
-18
lines changed
1 file changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -45,34 +45,40 @@ export default [
45
45
{
46
46
url: '/mock/{{ #if relativePath }} {{ relativePath }} /{{ /if }} {{ moduleName }} /create',
47
47
method: 'post',
48
- response: {
49
- error: '',
50
- status: 1,
51
- data: {
52
- isSuccess: true,
53
- },
48
+ response: () => {
49
+ return {
50
+ error: '',
51
+ status: 1,
52
+ data: {
53
+ isSuccess: true,
54
+ },
55
+ }
54
56
},
55
57
},
56
58
{
57
59
url: '/mock/{{ #if relativePath }} {{ relativePath }} /{{ /if }} {{ moduleName }} /edit',
58
60
method: 'post',
59
- response: {
60
- error: '',
61
- status: 1,
62
- data: {
63
- isSuccess: true,
64
- },
61
+ response: () => {
62
+ return {
63
+ error: '',
64
+ status: 1,
65
+ data: {
66
+ isSuccess: true,
67
+ },
68
+ }
65
69
},
66
70
},
67
71
{
68
72
url: '/mock/{{ #if relativePath }} {{ relativePath }} /{{ /if }} {{ moduleName }} /delete',
69
73
method: 'post',
70
- response: {
71
- error: '',
72
- status: 1,
73
- data: {
74
- isSuccess: true,
75
- },
74
+ response: () => {
75
+ return {
76
+ error: '',
77
+ status: 1,
78
+ data: {
79
+ isSuccess: true,
80
+ },
81
+ }
76
82
},
77
83
},
78
84
]
You can’t perform that action at this time.
0 commit comments