feat: add login blocking; 🌟

新增:登录拦截功能;
This commit is contained in:
chenghongxing
2020-07-20 22:39:46 +08:00
parent d21a2ab062
commit 4e6a060dfe
7 changed files with 79 additions and 12 deletions

View File

@@ -21,6 +21,7 @@ Mock.mock('/login', 'post', ({body}) => {
result.data = {}
result.data.user = user
result.data.token = 'Authorization:' + Math.random()
result.data.expireAt = new Date(new Date().getTime() + 30 * 60 * 1000)
}
return result
})