Merge pull request #1 from jmia/patch-1

change global variable name
This commit is contained in:
shijun Wei 2020-10-23 00:37:20 -04:00 committed by GitHub
commit 6a86e039a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,9 +28,9 @@ export default class VueSocketIO {
*/
install(app){
app.config.globalProperties.$http = this.io;
app.config.globalProperties.$vueSocketIo = this;
app.mixin(Mixin);
app.config.globalProperties.$socket = this.io;
app.config.globalProperties.$vueSocketIo = this;
app.mixin(Mixin);
Logger.info('Vue-Socket.io plugin enabled');