Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 5d988f0e
authored
Feb 22, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加演示账号登录快捷按钮
1 parent
7251fa13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
linkwe-ui/src/views/login.vue
linkwe-ui/src/views/login.vue
View file @
5d988f0
...
@@ -55,10 +55,17 @@
...
@@ -55,10 +55,17 @@
</div>
</div>
</el-form-item>
</el-form-item>
<el-checkbox
<el-checkbox
class=
"fr"
v-model=
"loginForm.rememberMe"
v-model=
"loginForm.rememberMe"
style=
"margin:0px 0px 25px 0px;"
style=
"margin:0px 0px 25px 0px;"
>
记住密码
</el-checkbox
>
记住密码
</el-checkbox
>
>
<el-checkbox
v-model=
"isDemonstrationLogin"
@
change=
"changeDemonAccount"
style=
"margin:0px 0px 25px 0px;"
>
演示账号登录
</el-checkbox
>
<el-form-item
style=
"width:100%;"
>
<el-form-item
style=
"width:100%;"
>
<el-button
<el-button
:loading=
"loading"
:loading=
"loading"
...
@@ -152,6 +159,7 @@ export default {
...
@@ -152,6 +159,7 @@ export default {
redirect
:
undefined
,
redirect
:
undefined
,
authLink
:
''
,
authLink
:
''
,
dialogVisible
:
true
,
dialogVisible
:
true
,
isDemonstrationLogin
:
false
,
}
}
},
},
watch
:
{
watch
:
{
...
@@ -227,6 +235,10 @@ export default {
...
@@ -227,6 +235,10 @@ export default {
goVote
()
{
goVote
()
{
window
.
open
(
'https://www.oschina.net/p/linkwechat'
)
window
.
open
(
'https://www.oschina.net/p/linkwechat'
)
},
},
changeDemonAccount
(
val
)
{
this
.
loginForm
.
username
=
val
?
'Wecome'
:
''
this
.
loginForm
.
password
=
val
?
'123456'
:
''
},
},
},
}
}
</
script
>
</
script
>
...
...
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