在main.js 中引入创建的文件,并将其定义到vue的原型中, 即可通过this.$sockets 调用socket import socketio from './socket'. Vue.prototype.$sockets = socketio ...
確定! 回上一頁