8000 修改接收推送信息相关的 · blust/laravel_template_with_vue@b1c7033 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1c7033

Browse files
committed
修改接收推送信息相关的
1 parent 1076359 commit b1c7033

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

frontend/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
ENV = 'production'
33

44
# base api
5-
VUE_APP_BASE_API = 'http://back.ynxpyz.cn'
5+
VUE_APP_BASE_API = 'http://back.ynxpyz.cn/'

frontend/src/layout/index.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,15 @@ export default {
7070
7171
window.Echo.private('leave.'+ this.name)
7272
.listen('UserLogin', (e) => {
73-
if (e.user.name === this.name) {
7473
this.$alert('当前用户在其它地方已经登录,现在即将退出', '登录警告', {
7574
confirmButtonText: '确定',
7675
callback: action => {
7776
this.$store.dispatch('user/resetToken').then(() => {
7877
window.location.reload();
7978
})
8079
}
81-
});
82-
}
83-
});
80+
})
81+
})
8482
},
8583
methods: {
8684
handleClickOutside() {

0 commit comments

Comments
 (0)
0