|
@@ -11,6 +11,11 @@ import {showAlertWin} from "@/utils/cqcy";
|
|
|
|
|
|
export default {
|
|
|
name: 'App',
|
|
|
+ provide(){
|
|
|
+ return {
|
|
|
+ WebSocket:this
|
|
|
+ }
|
|
|
+ },
|
|
|
metaInfo() {
|
|
|
return {
|
|
|
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
|
|
@@ -31,6 +36,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
initWebSocket() {
|
|
|
+ console.log('webSocket');
|
|
|
let _this = this
|
|
|
if (typeof (WebSocket) === 'undefined') {
|
|
|
showAlertWin(_this, '您使用的环境暂不支持socket服务!')
|