Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-02-27 16:26:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b0f0d13f79d34ddca71759095cf796a1cfb69240
b0f0d13f
1 parent
6c121abd
🐞 fix(登录相关页面): 邮箱地址校验正则标准放宽
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
.nvmrc
src/views/user/info.vue
src/views/user/login.vue
src/views/user/register.vue
src/views/user/reset.vue
.nvmrc
0 → 100644
View file @
b0f0d13
v18.13
src/views/user/info.vue
View file @
b0f0d13
<!--
* @Date: 2024-10-18 18:00:47
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
4-12-16 15:17:24
* @LastEditTime: 202
5-02-27 16:24:46
* @FilePath: /hager/src/views/user/info.vue
* @Description: 文件描述
-->
...
...
@@ -114,7 +114,7 @@ export default {
return;
}
// 检验邮箱地址有效性
if (!/^[
a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)
+$/.test(this.email)) {
if (!/^[
^\s@]+@[^\s@]+\.[^\s@]
+$/.test(this.email)) {
Message({
type: 'error',
message: '邮箱地址格式不正确'
...
...
src/views/user/login.vue
View file @
b0f0d13
<!--
* @Date: 2024-10-18 18:00:47
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
4-10-25 13:49:38
* @LastEditTime: 202
5-02-27 16:24:11
* @FilePath: /hager/src/views/user/login.vue
* @Description: 文件描述
-->
...
...
@@ -57,7 +57,7 @@ export default {
return;
}
// 检验邮箱地址有效性
if (!/^[
a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)
+$/.test(this.email)) {
if (!/^[
^\s@]+@[^\s@]+\.[^\s@]
+$/.test(this.email)) {
Message({
type: 'error',
message: '邮箱地址格式不正确'
...
...
src/views/user/register.vue
View file @
b0f0d13
<!--
* @Date: 2024-10-18 18:00:47
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
4-12-11 17:36:10
* @LastEditTime: 202
5-02-27 16:24:53
* @FilePath: /hager/src/views/user/register.vue
* @Description: 文件描述
-->
...
...
@@ -95,7 +95,7 @@ export default {
return;
}
// 检验邮箱地址有效性
if (!/^[
a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)
+$/.test(this.email)) {
if (!/^[
^\s@]+@[^\s@]+\.[^\s@]
+$/.test(this.email)) {
Message({
type: 'error',
message: '邮箱地址格式不正确'
...
...
src/views/user/reset.vue
View file @
b0f0d13
<!--
* @Date: 2024-10-18 18:00:47
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
4-10-25 16:00
:00
* @LastEditTime: 202
5-02-27 16:25
:00
* @FilePath: /hager/src/views/user/reset.vue
* @Description: 文件描述
-->
...
...
@@ -55,7 +55,7 @@ export default {
return;
}
if (!/^[
a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(va
l)) { // 检验邮箱地址有效性
if (!/^[
^\s@]+@[^\s@]+\.[^\s@]+$/.test(this.emai
l)) { // 检验邮箱地址有效性
Message({
type: 'error',
message: '邮箱地址格式不正确'
...
...
@@ -87,7 +87,7 @@ export default {
return;
}
// 检验邮箱地址有效性
if (!/^[
a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)
+$/.test(this.email)) {
if (!/^[
^\s@]+@[^\s@]+\.[^\s@]
+$/.test(this.email)) {
Message({
type: 'error',
message: '邮箱地址格式不正确'
...
...
Please
register
or
login
to post a comment