quanyawei
2024-07-09 9e92d9fb2f4c7aea544b3286c774c72d931f248b
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);