vue+antd 后台管理框架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
336 B

import Mock from 'mockjs'
import '@/mock/extend'
const userDB = Mock.mock({
'list|2-10': [
{
name: '@ADMIN',
avatar: '@AVATAR',
address: '@CITY',
welcome: '@WELCOME',
timeFix: '@TIMEFIX',
position: '@position'
}
]
}).list
Mock.mock('/user/current', 'get', () => {
return userDB[0]
})