src/main.js @@ -15,6 +15,9 @@ import 'vue-layer/lib/vue-layer.css'; Vue.prototype.$layer = layer(Vue); import * as socket from '@/assets/js/socket' Vue.prototype.$socket = socket Vue.prototype.$axios = axios; Vue.use(ElementUI, {