8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1076359 commit b1c7033Copy full SHA for b1c7033
frontend/.env.production
@@ -2,4 +2,4 @@
2
ENV = 'production'
3
4
# base api
5
-VUE_APP_BASE_API = 'http://back.ynxpyz.cn'
+VUE_APP_BASE_API = 'http://back.ynxpyz.cn/'
frontend/src/layout/index.vue
@@ -70,17 +70,15 @@ export default {
70
71
window.Echo.private('leave.'+ this.name)
72
.listen('UserLogin', (e) => {
73
- if (e.user.name === this.name) {
74
this.$alert('当前用户在其它地方已经登录,现在即将退出', '登录警告', {
75
confirmButtonText: '确定',
76
callback: action => {
77
this.$store.dispatch('user/resetToken').then(() => {
78
window.location.reload();
79
})
80
}
81
- });
82
- }
83
+ })
84
},
85
methods: {
86
handleClickOutside() {
0 commit comments