Browse Source

配置信息修改

shilin 4 years ago
parent
commit
4a3fd1a4d6
2 changed files with 8 additions and 2 deletions
  1. 1 1
      common/store.js
  2. 7 1
      components/mine/addressBook/InitializeThe.vue

+ 1 - 1
common/store.js

@@ -8,7 +8,7 @@ const store = new Vuex.Store({
 		wholeSituationBackStageIp:'117.78.18.24',//117.78.18.24
 		wholeSituationBackStagePort:'9988',
 		
-		GlobalLocalIp:'192.168.1.102',//192.168.1.102
+		GlobalLocalIp:'192.168.3.24',//192.168.1.102
 		GlobalLocalPort:'4397',
 		
 		windpowerstationNameToId:{},

+ 7 - 1
components/mine/addressBook/InitializeThe.vue

@@ -30,6 +30,12 @@
 			this.getUserList();
 		},
 		computed: {
+			sisStageIp: function() {
+				return this.$store.state.wholeSituationBackStageIp;
+			},
+			sisStagePort: function() {
+				return this.$store.state.wholeSituationBackStagePort;
+			},
 			backStageIp: function() {
 				return this.$store.state.GlobalLocalIp;
 			},
@@ -63,7 +69,7 @@
 
 				let _this = this;
 				uni.request({
-					url: 'http://' + this.backStageIp + ':' + this.backStagePort + '/GyeeuserController/selectUserList',
+					url: 'http://' + this.sisStageIp + ':' + this.sisStagePort + '/GyeeuserController/selectUserList',
 					data: {},
 					method: 'GET',
 					success: function(res) {