|
@@ -23,7 +23,7 @@
|
|
|
name="username"
|
|
|
type="text"
|
|
|
tabindex="1"
|
|
|
- auto-complete="on" />
|
|
|
+ auto-complete="off" />
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item prop="password"
|
|
@@ -39,7 +39,7 @@
|
|
|
placeholder="请输入密码"
|
|
|
name="password"
|
|
|
tabindex="2"
|
|
|
- auto-complete="on"
|
|
|
+ auto-complete="off"
|
|
|
@keyup.enter.native="handleLogin" />
|
|
|
<span class="show-pwd"
|
|
|
@click="showPwd">
|
|
@@ -156,7 +156,10 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss">
|
|
|
+<style lang="scss" rel="stylesheet/scss">
|
|
|
+.login-input {
|
|
|
+ background-color: #fff;
|
|
|
+}
|
|
|
/* 修复input 背景不协调 和光标变色 */
|
|
|
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
|
|
|
.loginBtn {
|
|
@@ -226,9 +229,17 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-$bg: #283443;
|
|
|
+$bg: #fff;
|
|
|
$light_gray: #fff;
|
|
|
-$cursor: #fff;
|
|
|
+$cursor: #000;
|
|
|
+@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
|
|
|
+ .login-container .el-input input {
|
|
|
+ color: $cursor;
|
|
|
+ &::first-line {
|
|
|
+ color: $light_gray;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
|
|
|
.login-container .el-input input {
|
|
@@ -270,7 +281,7 @@ $cursor: #fff;
|
|
|
</style>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-$bg: #2d3a4b;
|
|
|
+$bg: #fff;
|
|
|
$dark_gray: #889aa4;
|
|
|
$light_gray: #eee;
|
|
|
|