pages/login/login.vue
@@ -113,6 +113,7 @@ const UIP = uni.getStorageSync('UIP'); if (UIP) { that.IP = UIP; that.baseIP = UIP; } else { that.IP = ''; } @@ -148,9 +149,9 @@ this.$refs.inputDialog.open() }, dialogInputConfirm(type){ this.UIP = type uni.setStorageSync('UIP',type) this.baseIP = type // 存入本地缓存 uni.setStorageSync('UIP',this.baseIP) }, checkboxChange: function(e) { if (e.detail.value.length == 1) { @@ -173,6 +174,7 @@ return; } uni.showLoading(); console.log(this.baseIP) uni.request({ url: this.baseHttp + this.baseIP + this.baseUrl + '/login.action', data: {