import Mock from 'mockjs'; const List = []; const count = 20; for (let i = 0; i < count; i++) { List.push(Mock.mock({ id: '@id', title: '@ctitle(10, 20)', 'status|1': ['published', 'draft'], author: '@cname', display_time: '@datetime', pageviews: '@integer(300, 5000)' })); } export default { getList: () => List, getArticle: () => ({ id: 120000000001, author: { key: 'mockPan' }, source_name: '原创作者', category_item: [{ key: 'global', name: '全球' }], comment_disabled: false, content: '
我是测试数据我是测试数据
"', content_short: '我是测试数据', display_time: +new Date(), image_uri: 'https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3', platforms: ['a-platform'], source_uri: 'https://github.com/PanJiaChen/vue-element-admin', status: 'published', tags: [], title: '' }) };