xiaoshushu 4 rokov pred
rodič
commit
09b37b94a5
2 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 2 2
      common/http.js
  2. 1 0
      pages/login/login.vue

+ 2 - 2
common/http.js

@@ -1,6 +1,6 @@
-const ip = 'http://192.168.1.27:8686';
+//const ip = 'http://192.168.1.27:8686';
 //const ip = 'http://192.168.0.101:8686';
-//const ip = 'http://114.215.150.32:8686';
+const ip = 'http://114.215.150.32:8686';
 /**
  * 全部接口
  */

+ 1 - 0
pages/login/login.vue

@@ -69,6 +69,7 @@ export default {
 			this.$http.request({
 				url: this.$http.urls.login,
 				data:this.item,
+				method: 'POST',
 				success: res => {
 					uni.showToast({ title: '登陆成功' });
 					uni.setStorageSync('user', res.data.data.user);