quanyawei
2023-09-25 fa0e4d6a9b61b4e5a153d147613ee1133c9c7c71
1
2
3
4
5
6
7
8
9
import Mock from 'mockjs';
 
function getTags() {
    return Mock.mock({
        'list|100': [{ 'name': '@city', 'value|1-100': 150, 'type|0-2': 1 }],
    });
}
 
Mock.mock(RegExp('/api/tag'), 'get', getTags);