From 95b16968596dd601257abdb0fc02d8711382d42f Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 28 十二月 2022 16:05:08 +0800
Subject: [PATCH] #
---
pages/login/login.vue | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index bd3159a..4b29fea 100644
--- a/pages/login/login.vue
+++ b/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;
--
Gitblit v1.9.1