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 2b25409f
authored
Jul 04, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账密显隐
1 parent
7f35f638
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
RELEASES.md
vue3-lw-pc/src/views/index/index.vue
vue3-lw-pc/src/views/login.vue
RELEASES.md
View file @
2b25409
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
2023.
xx.xx
2023.
xx.xx
1.
1.
新增登录框显隐密码功能
2.
2.
新增登录和修改密码使用 RSA 加密传输
3.
3.
### v5.1.0
### v5.1.0
...
...
vue3-lw-pc/src/views/index/index.vue
View file @
2b25409
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
<div
class=
"companyName"
>
{{ $store.user.companyName }}
</div>
<div
class=
"companyName"
>
{{ $store.user.companyName }}
</div>
<div
class=
"info"
>
<div
class=
"info"
>
当前版本:
当前版本:
<span
class=
"fr"
>
{{
lwConfig._version ||
table.currentEdition }}
</span>
<span
class=
"fr"
>
{{ table.currentEdition }}
</span>
</div>
</div>
<div
class=
"info"
>
<div
class=
"info"
>
使用人数:
使用人数:
...
...
vue3-lw-pc/src/views/login.vue
View file @
2b25409
...
@@ -15,13 +15,20 @@
...
@@ -15,13 +15,20 @@
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
>
<el-input
<el-input
v-model=
"loginForm.password"
v-model=
"loginForm.password"
type=
"password
"
:type=
"isPassword ? 'password' : 'text'
"
auto-complete=
"off"
auto-complete=
"off"
placeholder=
"密码"
placeholder=
"密码"
@
keyup
.
enter=
"handleLogin"
>
@
keyup
.
enter=
"handleLogin"
>
<
template
#
prefix
>
<
template
#
prefix
>
<svg-icon
style=
"height: 33px"
icon=
"password"
class=
"el-input__icon input-icon"
/>
<svg-icon
style=
"height: 33px"
icon=
"password"
class=
"el-input__icon input-icon"
/>
</
template
>
</
template
>
<
template
#
suffix
>
<svg-icon
style=
"height: 33px"
:icon=
"isPassword ? 'eye' : 'eye-open'"
class=
"el-input__icon input-icon cp"
@
click=
"isPassword = !isPassword"
/>
</
template
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"code"
>
<el-form-item
prop=
"code"
>
...
@@ -75,6 +82,7 @@ export default {
...
@@ -75,6 +82,7 @@ export default {
codeUrl
:
''
,
codeUrl
:
''
,
wechatCodeUrl
:
''
,
wechatCodeUrl
:
''
,
cookiePassword
:
''
,
cookiePassword
:
''
,
isPassword
:
true
,
loginForm
:
{
loginForm
:
{
username
:
''
,
username
:
''
,
password
:
''
,
password
:
''
,
...
@@ -162,7 +170,7 @@ export default {
...
@@ -162,7 +170,7 @@ export default {
Cookies
.
remove
(
'rememberMe'
)
Cookies
.
remove
(
'rememberMe'
)
}
}
let
loginForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
loginForm
))
let
loginForm
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
loginForm
))
loginForm
.
password
=
encrypt
(
this
.
loginForm
.
password
)
//
loginForm.password = encrypt(this.loginForm.password)
this
.
$store
this
.
$store
.
Login
(
loginForm
)
.
Login
(
loginForm
)
.
then
(()
=>
{
.
then
(()
=>
{
...
...
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