Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
曾琪
/
tFIMS
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f1bad5d6
authored
Sep 09, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
84527484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
src/views/system/login/index.vue
src/views/system/login/index.vue
View file @
f1bad5d
...
...
@@ -103,19 +103,17 @@ export default {
},
// 表单校验
rules
:
Object
.
freeze
({
loginName
:
[
{
loginName
:
[{
required
:
true
,
message
:
'请输入用户名'
,
trigger
:
'
blur
'
trigger
:
'
submit
'
}
],
password
:
[
{
required
:
true
,
message
:
'请输入密码'
,
trigger
:
'blur'
}
password
:
[{
required
:
true
,
message
:
'请输入密码'
,
trigger
:
'submit'
}
]
})
}
...
...
@@ -148,9 +146,6 @@ export default {
this
.
login
(
_p
)
.
then
(()
=>
this
.
$store
.
dispatch
(
'd2admin/auth/init'
))
.
then
(
_
=>
this
.
$router
.
replace
(
this
.
$route
.
query
.
redirect
||
'/'
))
}
else
{
// 登录表单校验失败
this
.
$message
.
error
(
'表单校验失败,请检查'
)
}
})
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment