Переглянути джерело

Merge pull request #201 from John-Hong/release-2.13.0

定位支付宝临时停车 H5 无法展示的问题
Tron 2 роки тому
батько
коміт
0fd95894dc
2 змінених файлів з 9 додано та 1 видалено
  1. 1 0
      src/App.vue
  2. 8 1
      src/utils/index.js

+ 1 - 0
src/App.vue

@@ -90,6 +90,7 @@ export default {
         console.log('platform====>90');
         try {
           const options = await wssInit();
+          console.log('platform====>93');
           this.$store.dispatch('baseInit', {
             options,
             callback: () => {

+ 8 - 1
src/utils/index.js

@@ -300,17 +300,24 @@ export function windowSendInit() {
 export function wssInit() {
   return new Promise(( resolve,reject ) => {
     try {
+      console.log('platform====>303');
       const socket = new SockJS(`${ getUrl() }/hafengWebsocket?token=${ window.token }`);
+      console.log('platform====>305');
       window.stompClient = Stomp.over(socket);
-      window.stompClient.debug = null;
+      console.log('platform====>307');
+      window.stompClient.debug = false;
+      console.log('platform====>308');
       windowSendInit();
+      console.log('platform====>311');
       window.stompClient.connect({},( frame ) => {
+        console.log('platform====>312');
         // 请求 projectId
         window.toWXSendMsg({
           type: 'getProjectId',
           options: {},
         });
         window.subscribe('projectId',( options ) => {
+          console.log('platform====>320');
           resolve(options);
         });
       });