Browse Source

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

定位支付宝临时停车 H5 无法展示的问题
Tron 2 years ago
parent
commit
0fd95894dc
2 changed files with 9 additions and 1 deletions
  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');
         console.log('platform====>90');
         try {
         try {
           const options = await wssInit();
           const options = await wssInit();
+          console.log('platform====>93');
           this.$store.dispatch('baseInit', {
           this.$store.dispatch('baseInit', {
             options,
             options,
             callback: () => {
             callback: () => {

+ 8 - 1
src/utils/index.js

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