#
whycq
2022-12-16 2abe8fe3bbe7ccb22b4ea772d2413b41466e3cc7
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://localhost: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://localhost:9528')
                     setTimeout(()=> {
                        uni.showToast({title: '登录成功'})
                        setTimeout(()=> {