Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
04b0a228
Commit
04b0a228
authored
Jul 30, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 登录弹框调整
parent
f30ce811
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
LoginModal.vue
src/components/LoginModal.vue
+4
-4
index.js
src/store/index.js
+1
-1
No files found.
src/components/LoginModal.vue
View file @
04b0a228
<
template
>
<modal
v-model
=
"isShowLogin"
:value
=
"isShowLogin"
title=
"您好
<br
/>
欢迎来到芒果保险"
:closeable="true"
cancel-btn
confirm-btn="确定"
@close="set
LoginIsShow
(false)"
@close="set
IsShowLogin
(false)"
@confirm="$refs.loginForm.submit()"
>
<cr-form
...
...
@@ -73,7 +73,7 @@ export default {
...
mapState
([
"
isShowLogin
"
])
},
methods
:
{
...
mapActions
([
"
set
LoginIsShow
"
]),
...
mapActions
([
"
set
IsShowLogin
"
]),
onFormFailed
(
errorInfo
)
{
const
{
errors
}
=
errorInfo
;
this
.
$notify
({
type
:
"
warning
"
,
message
:
errors
[
0
].
message
});
...
...
@@ -84,7 +84,7 @@ export default {
const
res
=
await
loginByPhone
(
this
.
formData
);
if
(
res
.
code
===
"
0
"
)
{
this
.
$notify
(
"
登录成功
"
);
this
.
set
LoginIsShow
(
false
);
this
.
set
IsShowLogin
(
false
);
localStorage
.
setItem
(
"
mongoToken
"
,
res
.
data
.
token
);
}
},
...
...
src/store/index.js
View file @
04b0a228
...
...
@@ -17,7 +17,7 @@ export default new Vuex.Store({
state
.
isLoading
=
value
;
},
setIsShowLogin
(
state
,
value
)
{
state
.
s
howLogin
=
value
;
state
.
isS
howLogin
=
value
;
}
},
actions
:
{
...
...
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