feat: add auth support for axios request; 🌟
新增:axios 请求添加 auth 认证支持;
This commit is contained in:
@@ -22,7 +22,7 @@ Mock.mock('/login', 'post', ({body}) => {
|
||||
result.message = Mock.mock('@TIMEFIX').CN + ',欢迎回来'
|
||||
result.data = {}
|
||||
result.data.user = user
|
||||
result.data.token = 'Authorization'
|
||||
result.data.token = 'Authorization:' + Math.random()
|
||||
}
|
||||
return result
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user