|
@@ -179,6 +179,12 @@ export default {
|
|
|
appServerID:'0'//服务器ID
|
|
|
}).then(({ data: res }) => {
|
|
|
if (res.expiresIn==7200) {
|
|
|
+ // 发送用户登录成功MQ消息
|
|
|
+ this.$http.get('/mq/user/login').then(({ data: res }) => {
|
|
|
+ if (res.code !== 0) {
|
|
|
+ return this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ }).catch(() => {})
|
|
|
Cookies.set('token', res.sessionToken)
|
|
|
this.$router.replace({ name: 'home' })
|
|
|
}
|