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.
 
 
 
 
 

29 lines
523 B

import Mock from 'mockjs'
// 登录
export function login () {
return {
// isOpen: false,
url: '/sys/login',
type: 'post',
data: {
'msg': 'success',
'code': 0,
'expire': Mock.Random.natural(60 * 60 * 1, 60 * 60 * 12),
'token': Mock.Random.string('abcdefghijklmnopqrstuvwxyz0123456789', 32)
}
}
}
// 退出
export function logout () {
return {
// isOpen: false,
url: '/sys/logout',
type: 'post',
data: {
'msg': 'success',
'code': 0
}
}
}