fix(index): 修复当router切换时不调用关闭流

duizhaopin_ui
duan 3 years ago
parent c0dd619944
commit 854a5faed7

@ -157,6 +157,7 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
this.sockets.unsubscribe('reco') this.sockets.unsubscribe('reco')
this.handleClose()
}, },
methods: { methods: {
handleClose: function() { handleClose: function() {

@ -278,7 +278,7 @@ import {
update update
} from '@/api/user/user' } from '@/api/user/user'
import stringify from '@/utils/stringify' import stringify from '@/utils/stringify'
import { throttle } from '@/utils' // import { throttle } from '@/utils'
export default { export default {
name: 'User', name: 'User',
@ -346,7 +346,8 @@ export default {
}, },
beforeDestroy() { beforeDestroy() {
this.sockets.unsubscribe('add') this.sockets.unsubscribe('add')
this.handleCancel() // this.handleCancel()
this.handleFaceCancel()
}, },
methods: { methods: {
getModelList() { getModelList() {

Loading…
Cancel
Save