ztxkui 2.5.9 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,7 +92,7 @@ var ForgetPassword = function (_a) {
|
|
|
92
92
|
setCodeLoading(false);
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
if (!validate.
|
|
95
|
+
if (!validate.shortPhoneValidate.test(phone)) {
|
|
96
96
|
message.error(commonMessage.phoneMessage);
|
|
97
97
|
setCodeLoading(false);
|
|
98
98
|
return;
|
|
@@ -105,13 +105,13 @@ var ForgetPassword = function (_a) {
|
|
|
105
105
|
method: 'GET',
|
|
106
106
|
params: {
|
|
107
107
|
phone: phone,
|
|
108
|
+
isUserExist: true,
|
|
108
109
|
},
|
|
109
110
|
})
|
|
110
111
|
.then(function (res) {
|
|
111
112
|
var _a = res.data, msg = _a.msg, success = _a.success;
|
|
112
113
|
if (success === 'true') {
|
|
113
|
-
|
|
114
|
-
// setUserPassword && setUserPassword();
|
|
114
|
+
message.success('验证码发送成功!');
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
117
|
message.warning(msg || '验证码发送失败!');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ztxkui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React components library",
|
|
6
6
|
"author": "zt-front-end",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"immutability-helper": "^3.1.1",
|
|
20
20
|
"number-precision": "^1.5.0",
|
|
21
21
|
"react-dnd": "^14.0.2",
|
|
22
|
-
"react-dnd-html5-backend": "^14.0.0"
|
|
22
|
+
"react-dnd-html5-backend": "^14.0.0",
|
|
23
|
+
"ztxkutils": "^2.5.1"
|
|
23
24
|
},
|
|
24
25
|
"scripts": {
|
|
25
26
|
"analyze": "source-map-explorer 'dist/static/js/*.js'",
|