From f8147b63b1af18c064573fa417d8a20df90eaa59 Mon Sep 17 00:00:00 2001
From: jyt <1592211625@qq.com>
Date: Fri, 29 Apr 2022 11:51:36 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E9=94=99=E8=AF=8D=E4=B8=8D=E8=83=BD?=
=?UTF-8?q?=E4=B8=BA=E7=BA=AF=E6=95=B0=E5=AD=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/mine/details.vue | 12 ++++++++++--
pages/mine/details2.vue | 12 ++++++++++--
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/pages/mine/details.vue b/pages/mine/details.vue
index d32e0aa..9cde1e8 100644
--- a/pages/mine/details.vue
+++ b/pages/mine/details.vue
@@ -138,7 +138,7 @@
常错词:
-
+
@@ -195,7 +195,7 @@
-
+
@@ -743,6 +743,13 @@
},
//确认加入常错词
Confirmtheexit() {
+ let reg = /^[0-9]+$/
+ if(reg.test(this.thewrongword)){
+ this.$refs.uToast.show({
+ title: '错误词不能为纯数字',
+ type: 'warning',
+ })
+ }else{
if (this.thewrongword) {
if (this.reswrongword) {
let parames = {
@@ -779,6 +786,7 @@
});
return
}
+ }
},
//取消加入常错词
Cancelout() {
diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue
index 5baf86f..b6ba067 100644
--- a/pages/mine/details2.vue
+++ b/pages/mine/details2.vue
@@ -221,7 +221,7 @@
常错词:
-
+
@@ -487,7 +487,7 @@
确认
-
+
@@ -1445,6 +1445,13 @@
},
//确认加入常错词
Confirmtheexit() {
+ let reg = /^[0-9]+$/
+ if(reg.test(this.thewrongword)){
+ this.$refs.uToast.show({
+ title: '错误词不能为纯数字',
+ type: 'warning',
+ })
+ }else{
if (this.thewrongword) {
if (this.reswrongword) {
let parames = {
@@ -1484,6 +1491,7 @@
});
return
}
+ }
},
//取消加入常错词
Cancelout() {