Commit 2b25409f by xinla

账密显隐

1 parent 7f35f638
......@@ -2,8 +2,8 @@
2023.xx.xx
1.
2.
1. 新增登录框显隐密码功能
2. 新增登录和修改密码使用 RSA 加密传输
3.
### v5.1.0
......
......@@ -65,7 +65,7 @@
<div class="companyName">{{ $store.user.companyName }}</div>
<div class="info">
当前版本:
<span class="fr">{{ lwConfig._version || table.currentEdition }}</span>
<span class="fr">{{ table.currentEdition }}</span>
</div>
<div class="info">
使用人数:
......
......@@ -15,13 +15,20 @@
<el-form-item prop="password">
<el-input
v-model="loginForm.password"
type="password"
:type="isPassword ? 'password' : 'text'"
auto-complete="off"
placeholder="密码"
@keyup.enter="handleLogin">
<template #prefix>
<svg-icon style="height: 33px" icon="password" class="el-input__icon input-icon" />
</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-form-item>
<el-form-item prop="code">
......@@ -75,6 +82,7 @@ export default {
codeUrl: '',
wechatCodeUrl: '',
cookiePassword: '',
isPassword: true,
loginForm: {
username: '',
password: '',
......@@ -162,7 +170,7 @@ export default {
Cookies.remove('rememberMe')
}
let loginForm = JSON.parse(JSON.stringify(this.loginForm))
loginForm.password = encrypt(this.loginForm.password)
// loginForm.password = encrypt(this.loginForm.password)
this.$store
.Login(loginForm)
.then(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!