Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
1cf7e222
Commit
1cf7e222
authored
Jun 22, 2019
by
zhengjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detail optimization
parent
90047c10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
src/views/system/user/center/updateEmail.vue
+12
-8
src/views/system/user/module/form.vue
+1
-1
No files found.
src/views/system/user/center/updateEmail.vue
View file @
1cf7e222
...
...
@@ -35,16 +35,20 @@ export default {
},
data
()
{
const
validatePass
=
(
rule
,
value
,
callback
)
=>
{
validPass
(
value
).
then
(
res
=>
{
if
(
res
.
status
===
200
)
{
callback
()
}
else
{
callback
(
new
Error
(
'密码错误,请重新输入'
))
}
})
if
(
value
===
''
||
value
===
null
)
{
callback
(
new
Error
(
'密码不能为空'
))
}
else
{
validPass
(
value
).
then
(
res
=>
{
if
(
res
.
status
===
200
)
{
callback
()
}
else
{
callback
(
new
Error
(
'密码错误,请重新输入'
))
}
})
}
}
const
validMail
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
===
''
)
{
if
(
value
===
''
||
value
===
null
)
{
callback
(
new
Error
(
'新邮箱不能为空'
))
}
else
if
(
value
===
this
.
email
)
{
callback
(
new
Error
(
'新邮箱不能与旧邮箱相同'
))
...
...
src/views/system/user/module/form.vue
View file @
1cf7e222
...
...
@@ -194,7 +194,7 @@ export default {
})
},
getJobs
(
id
)
{
this
.
jobId
=
null
this
.
jobId
=
null
getAllJob
(
id
).
then
(
res
=>
{
this
.
jobs
=
res
.
content
}).
catch
(
err
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment