#
whycq
2022-12-28 95b16968596dd601257abdb0fc02d8711382d42f
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://127.0.0.1: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;