Browse Source

Merge branch 'dev-meta' of xiongzhu/raex_back into master

sunkean 2 years ago
parent
commit
6a170ed10f

+ 1 - 1
src/main/vue/src/views/MetaEmailList.vue

@@ -203,7 +203,7 @@ export default {
         },
         initWebSocket() {
             let wsuri = 'ws://127.0.0.1:8088/websocket/' + this.$store.state.userInfo.id;
-            if (location.host === 'raex.vip') {
+            if (location.host === 'raex.vip' || location.host === 'www.raex.vip') {
                 wsuri = 'wss://mmo.raex.vip/websocket/' + this.$store.state.userInfo.id;
             }
             if (location.host === 'test.raex.vip') {

+ 1 - 1
src/main/vue/src/views/MetaObjectMoveList.vue

@@ -67,7 +67,7 @@ export default {
 	created() {
 		if (location.host === 'test.raex.vip') {
 			this.baseUrl = 'test.mmo.raex.vip'
-		} else if (location.host === 'raex.vip') {
+		} else if (location.host === 'raex.vip' || location.host === 'www.raex.vip') {
 			this.baseUrl = 'mmo.raex.vip'
 		} else {
 			this.baseUrl = 'localhost:8088'

+ 1 - 1
src/main/vue/src/views/MetaWebsocketSwitchList.vue

@@ -220,7 +220,7 @@ export default {
 		},
 		initWebSocket() {
 			let wsuri = 'ws://127.0.0.1:8088/websocket/' + this.$store.state.userInfo.id;
-			if (location.host === 'raex.vip') {
+			if (location.host === 'raex.vip' || location.host === 'www.raex.vip') {
 				wsuri = 'wss://mmo.raex.vip/websocket/' + this.$store.state.userInfo.id;
 			}
 			if (location.host === 'test.raex.vip') {

+ 1 - 1
src/main/vue/src/views/MetaZouMaLightList.vue

@@ -199,7 +199,7 @@ export default {
         },
         initWebSocket() {
             let wsuri = 'ws://127.0.0.1:8088/websocket/' + this.$store.state.userInfo.id;
-            if (location.host === 'raex.vip') {
+            if (location.host === 'raex.vip' || location.host === 'www.raex.vip') {
                 wsuri = 'wss://mmo.raex.vip/websocket/' + this.$store.state.userInfo.id;
             }
             if (location.host === 'test.raex.vip') {