Ver Fonte

Merge branch 'one' of http://git.cc-lotus.info/pointToNetwork/web-admin into one

zs há 1 ano atrás
pai
commit
33cfa416e4
3 ficheiros alterados com 5 adições e 3 exclusões
  1. 1 1
      .env
  2. 2 0
      .gitignore
  3. 2 2
      src/plugins/stomp.js

+ 1 - 1
.env

@@ -1,4 +1,4 @@
-VUE_APP_AXIOS_BASE_URL = '/dev'
+VUE_APP_AXIOS_BASE_URL = ''
 VUE_APP_ROUTER="shoppingOneAdmin"
 VUE_APP_HOST="https://broadcast.waityou24.cn"
 VUE_APP_PAGE_SIZE=50

+ 2 - 0
.gitignore

@@ -2,6 +2,8 @@
 node_modules
 shoppingAdmin
 /dist
+shoppingOneAdmin
+shoppingOneAdmin.zip
 
 
 # local env files

+ 2 - 2
src/plugins/stomp.js

@@ -16,8 +16,8 @@ const Plugin = {
       };
     }
     assert(_.isString(options.brokerURL));
-    if (!options.brokerURL.startsWith('ws://')) {
-      options.brokerURL = `ws://${location.host}${options.brokerURL}`;
+    if (!options.brokerURL.startsWith('wss://')) {
+      options.brokerURL = `wss://${location.host}${options.brokerURL}`;
     }
 
     // 3. 注入组件