From a9549ee3c59c21ce1f0d22c79e4aae435862cd56 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 12 Feb 2026 10:24:44 +0800
Subject: [PATCH] feat:去除小程序捕捉弹窗
---
uniapps/work-wx/src/pages/login/index.vue | 10 +++++-----
uniapps/work-wx/src/subPackages/userDetail/password/index.vue | 21 +++++++++++----------
uniapps/work-wx/src/pages/register/index.vue | 18 +++++++++---------
3 files changed, 25 insertions(+), 24 deletions(-)
diff --git a/uniapps/work-wx/src/pages/login/index.vue b/uniapps/work-wx/src/pages/login/index.vue
index edb0ccb..26a57a5 100644
--- a/uniapps/work-wx/src/pages/login/index.vue
+++ b/uniapps/work-wx/src/pages/login/index.vue
@@ -132,11 +132,11 @@
error.data?.error_description !== "Bad credentials"
? error.data?.error_description
: "登录失败,请重试";
- uni.showToast({
- title: errorMsg,
- icon: "none",
- duration: 2000,
- });
+ // uni.showToast({
+ // title: errorMsg,
+ // icon: "none",
+ // duration: 2000,
+ // });
}
}
diff --git a/uniapps/work-wx/src/pages/register/index.vue b/uniapps/work-wx/src/pages/register/index.vue
index 7a0458f..14a2e30 100644
--- a/uniapps/work-wx/src/pages/register/index.vue
+++ b/uniapps/work-wx/src/pages/register/index.vue
@@ -167,11 +167,11 @@
});
}
}).catch(err => {
- uni.showToast({
- title: '网络错误,请稍后重试',
- icon: 'none',
- duration: 2000
- });
+ // uni.showToast({
+ // title: '网络错误,请稍后重试',
+ // icon: 'none',
+ // duration: 2000
+ // });
});
};
function register() {
@@ -227,10 +227,10 @@
});
}
}).catch(err => {
- uni.showToast({
- title: '网络错误,请稍后重试',
- icon: 'none',
- });
+ // uni.showToast({
+ // title: '网络错误,请稍后重试',
+ // icon: 'none',
+ // });
});
}
</script>
diff --git a/uniapps/work-wx/src/subPackages/userDetail/password/index.vue b/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
index 8381ad7..1f09f1a 100644
--- a/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
+++ b/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
@@ -142,11 +142,11 @@
});
}
}).catch(err => {
- uni.showToast({
- title: '网络错误,请稍后重试',
- icon: 'none',
- duration: 2000
- });
+ // uni.showToast({
+ // title: '网络错误,请稍后重试',
+ // icon: 'none',
+ // duration: 2000
+ // });
});
};
const reset = () => {
@@ -233,11 +233,12 @@
});
}
}).catch(err => {
- uni.showToast({
- title: '网络错误,请稍后重试',
- icon: 'none',
- duration: 2000
- });
+ console.log(err);
+ // uni.showToast({
+ // title: '网络错误,请稍后重试',
+ // icon: 'none',
+ // duration: 2000
+ // });
});
};
onShow(async () => {
--
Gitblit v1.9.3