import Mock from 'mockjs'
const ExampleData = [{
  id: 1,
  username: 'admin',
  password: '123456',
  avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png',
  name: '张某某'
}]

const LoginUsers = [{
  id: 1,
  username: 'admin',
  password: '123456',
  avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png',
  name: '张某某'
}, {
  id: 2,
  username: 'developer',
  password: '123456',
  avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png',
  name: '李四'
}, {
  id: 3,
  username: 'guest',
  password: '123456',
  avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png',
  name: '王五'
}]
const ExampleDataList = []

for (let i = 0; i < 86; i++) {
  ExampleDataList.push(Mock.mock({
    id: Mock.Random.guid(),
    name: Mock.Random.cname(),
    addr: Mock.mock('@county(true)'),
    'age|18-60': 1,
    birth: Mock.Random.date(),
    sex: Mock.Random.integer(0, 1)
  }))
}

const controlData = Mock.mock({
  'userCount|1-9999': 1201,
  'activeCount|1-9999': 728,
  'newCount|1-9999': 1
})

export {
  ExampleData,
  LoginUsers,
  ExampleDataList,
  controlData
}

import Mock from 'mockjs'
const ExampleData = [{
  id: 1,
  username: 'admin',
  password: '123456',
  avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png',
  name: '张某某'
}]

const LoginUsers = [{
  id: 1,
  username: 'admin',
  password: '123456',
  avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png',
  name: '张某某'
}, {
  id: 2,
  username: 'developer',
  password: '123456',
  avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png',
  name: '李四'
}, {
  id: 3,
  username: 'guest',
  password: '123456',
  avatar: 'https://raw.githubusercontent.com/taylorchen709/markdown-images/master/vueadmin/user.png',
  name: '王五'
}]
const ExampleDataList = []

for (let i = 0; i < 86; i++) {
  ExampleDataList.push(Mock.mock({
    id: Mock.Random.guid(),
    name: Mock.Random.cname(),
    addr: Mock.mock('@county(true)'),
    'age|18-60': 1,
    birth: Mock.Random.date(),
    sex: Mock.Random.integer(0, 1)
  }))
}

const controlData = Mock.mock({
  'userCount|1000-9999': 1201,
  'activeCount|1-999': 728,
  'newCount|1-99': 1
})

export {
  ExampleData,
  LoginUsers,
  ExampleDataList,
  controlData
}

Update mock data