pages/login/login.vue
@@ -65,7 +65,7 @@ onLogin() { let that = this uni.request({ url: 'http://127.0.0.1:9528/login.action', url: 'http://192.168.4.188:9528/login.action', fail(result) { uni.showToast({title: '请求失败'}) }, @@ -83,6 +83,7 @@ that.load.btnText = '登录中'; uni.setStorageSync('token', res.data.token); uni.setStorageSync('userName', that.user.userName); uni.setStorageSync('baseUrl','http://192.168.4.188:9528') setTimeout(()=> { uni.showToast({title: '登录成功'}) setTimeout(()=> {