From 4885600ecc369aa2e30a65de8dd7a410f13c34df Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期一, 24 五月 2021 11:25:04 +0800 Subject: [PATCH] 解决app通信问题 --- main.js | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) diff --git a/main.js b/main.js index ed23cbd..8522d55 100644 --- a/main.js +++ b/main.js @@ -1,17 +1,18 @@ import Vue from 'vue' import App from './App' -import VueMqtt from 'vue-mqtt'; +// import VueMqtt from 'vue-mqtt'; +// import VueMqtt from './utils/build.js' Vue.config.productionTip = false -let mqttClientOptions = { - clientId: 'WebClient-' + parseInt(Math.random() * 100000), - username: 'admin', - password: 'admin123', - useSSL: false, - mqttVersion: 4, - timeout: 3 -} -Vue.use(VueMqtt, 'ws://192.168.20.189:15675/ws', mqttClientOptions); +// let mqttClientOptions = { +// clientId: 'WebClient-' + parseInt(Math.random() * 100000), +// username: 'admin', +// password: 'admin123', +// useSSL: false, +// mqttVersion: 4, +// timeout: 3 +// } +// Vue.use(VueMqtt, 'wx://192.168.20.189:15675/ws', mqttClientOptions); App.mpType = 'app' -- Gitblit v1.8.0