feat(update): vue3 compatibility

pull/307/head
谭杨 4 years ago
parent 3337d43298
commit 136658ad47

File diff suppressed because one or more lines are too long

6
index.d.ts vendored

@ -28,6 +28,12 @@ declare module 'vue/types/vue' {
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$socket: SocketIOClient.Socket,
}
}
declare module 'vue/types/options' {
interface ComponentOptions<
V extends Vue,

@ -39,7 +39,7 @@ export default {
/**
* unsubscribe when component unmounting
*/
beforeDestroy(){
beforeUnmount(){
if(this.$options.sockets){

Loading…
Cancel
Save