新增在线用户管理,新增注销登录功能,token交于redis管理

This commit is contained in:
dqjdda
2019-10-26 23:44:27 +08:00
parent d927282717
commit f5fb1872bd
8 changed files with 171 additions and 16 deletions

View File

@@ -26,3 +26,10 @@ export function getCodeImg() {
method: 'get'
})
}
export function logout() {
return request({
url: 'auth/logout',
method: 'delete'
})
}

8
src/api/online.js Normal file
View File

@@ -0,0 +1,8 @@
import request from '@/utils/request'
export function del(key) {
return request({
url: 'auth/online/' + key,
method: 'delete'
})
}