pages/login/login.vue
@@ -44,7 +44,7 @@ load: { loading: false, btnText: '登录' } }, } }, onLoad:function(){ @@ -65,7 +65,7 @@ onLogin() { let that = this uni.request({ url: 'http://localhost:9528/login.action', url: that.baseUrl + '/login.action', fail(result) { uni.showToast({title: '请求失败'}) }, @@ -77,6 +77,10 @@ "content-type": "application/json" }, success(result) { if (result.statusCode === 404) { uni.showToast({title: '请重新登录', icon: "none", position: 'top'}) return } let res = result.data if (res.code === 200 ){ that.load.loading = true;