Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
有来技术
vue3-element-admin
提交
f00e65d2
V
vue3-element-admin
项目概览
有来技术
/
vue3-element-admin
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue3-element-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f00e65d2
编写于
5月 17, 2022
作者:
郝
郝先瑞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor(login.vue): 验证码样式优化
上级
53e2a43c
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
12 addition
and
11 deletion
+12
-11
src/views/login/index.vue
src/views/login/index.vue
+12
-11
未找到文件。
src/views/login/index.vue
浏览文件 @
f00e65d2
...
@@ -133,11 +133,13 @@ const state = reactive({
...
@@ -133,11 +133,13 @@ const state = reactive({
username
:
'
admin
'
,
username
:
'
admin
'
,
password
:
'
123456
'
,
password
:
'
123456
'
,
code
:
''
,
code
:
''
,
uuid
:
''
uuid
:
''
,
}
as
LoginFormData
,
}
as
LoginFormData
,
loginRules
:
{
loginRules
:
{
username
:
[{
required
:
true
,
trigger
:
'
blur
'
}],
username
:
[{
required
:
true
,
trigger
:
'
blur
'
}],
password
:
[{
required
:
true
,
trigger
:
'
blur
'
,
validator
:
validatePassword
}]
password
:
[
{
required
:
true
,
trigger
:
'
blur
'
,
validator
:
validatePassword
},
],
},
},
loading
:
false
,
loading
:
false
,
passwordType
:
'
password
'
,
passwordType
:
'
password
'
,
...
@@ -146,7 +148,7 @@ const state = reactive({
...
@@ -146,7 +148,7 @@ const state = reactive({
capslockTooltipDisabled
:
true
,
capslockTooltipDisabled
:
true
,
otherQuery
:
{},
otherQuery
:
{},
clientHeight
:
document
.
documentElement
.
clientHeight
,
clientHeight
:
document
.
documentElement
.
clientHeight
,
showCopyright
:
true
showCopyright
:
true
,
});
});
function
validatePassword
(
rule
:
any
,
value
:
any
,
callback
:
any
)
{
function
validatePassword
(
rule
:
any
,
value
:
any
,
callback
:
any
)
{
...
@@ -164,7 +166,7 @@ const {
...
@@ -164,7 +166,7 @@ const {
passwordType
,
passwordType
,
captchaBase64
,
captchaBase64
,
capslockTooltipDisabled
,
capslockTooltipDisabled
,
showCopyright
showCopyright
,
}
=
toRefs
(
state
);
}
=
toRefs
(
state
);
function
checkCapslock
(
e
:
any
)
{
function
checkCapslock
(
e
:
any
)
{
...
@@ -208,7 +210,7 @@ function handleLogin() {
...
@@ -208,7 +210,7 @@ function handleLogin() {
function
handleCaptchaGenerate
()
{
function
handleCaptchaGenerate
()
{
getCaptcha
().
then
(({
data
})
=>
{
getCaptcha
().
then
(({
data
})
=>
{
const
{
img
,
uuid
}
=
data
;
const
{
img
,
uuid
}
=
data
;
state
.
captchaBase64
=
'
data:image/gif;base64,
'
+
img
;
state
.
captchaBase64
=
img
;
state
.
loginForm
.
uuid
=
uuid
;
state
.
loginForm
.
uuid
=
uuid
;
});
});
}
}
...
@@ -223,7 +225,7 @@ watch(
...
@@ -223,7 +225,7 @@ watch(
}
}
},
},
{
{
immediate
:
true
immediate
:
true
,
}
}
);
);
...
@@ -281,7 +283,7 @@ $cursor: #fff;
...
@@ -281,7 +283,7 @@ $cursor: #fff;
.el-input
{
.el-input
{
display
:
inline-block
;
display
:
inline-block
;
height
:
47
px
;
height
:
36
px
;
width
:
85%
;
width
:
85%
;
.el-input__wrapper
{
.el-input__wrapper
{
padding
:
0
;
padding
:
0
;
...
@@ -292,9 +294,8 @@ $cursor: #fff;
...
@@ -292,9 +294,8 @@ $cursor: #fff;
border
:
0px
;
border
:
0px
;
-webkit-appearance
:
none
;
-webkit-appearance
:
none
;
border-radius
:
0px
;
border-radius
:
0px
;
padding
:
12px
5px
12px
15px
;
color
:
$light_gray
;
color
:
$light_gray
;
height
:
47
px
;
height
:
36
px
;
caret-color
:
$cursor
;
caret-color
:
$cursor
;
&
:-webkit-autofill
{
&
:-webkit-autofill
{
...
@@ -365,7 +366,7 @@ $light_gray: #eee;
...
@@ -365,7 +366,7 @@ $light_gray: #eee;
}
}
.svg-container
{
.svg-container
{
padding
:
6px
5px
6px
15
px
;
padding
:
5px
10
px
;
color
:
$dark_gray
;
color
:
$dark_gray
;
vertical-align
:
middle
;
vertical-align
:
middle
;
width
:
30px
;
width
:
30px
;
...
@@ -400,7 +401,7 @@ $light_gray: #eee;
...
@@ -400,7 +401,7 @@ $light_gray: #eee;
top
:
0
;
top
:
0
;
img
{
img
{
height
:
5
2px
;
height
:
4
2px
;
cursor
:
pointer
;
cursor
:
pointer
;
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录