fix vue 3 plugin install

This commit is contained in:
shijun Wei 2020-10-20 16:33:25 +08:00 committed by GitHub
parent 2f63eebb70
commit a1bc422202
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,11 +26,11 @@ export default class VueSocketIO {
* Vue.js entry point
* @param Vue
*/
install(Vue){
install(app){
Vue.prototype.$socket = this.io;
Vue.prototype.$vueSocketIo = this;
Vue.mixin(Mixin);
app.config.globalProperties.$http = this.io;
app.config.globalProperties.$vueSocketIo = this;
app.mixin(Mixin);
Logger.info('Vue-Socket.io plugin enabled');