quanyawei
2024-08-28 247dacca9784396eeaf17ef3e85c7ae646b786e4
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);