Browse Source

style: :lipstick: 重置浏览器默认填充样式

chaooo 2 years ago
parent
commit
c8a04fc571
2 changed files with 8 additions and 2 deletions
  1. 1 1
      src/store/modules/permission.ts
  2. 7 1
      src/views/login/index.vue

+ 1 - 1
src/store/modules/permission.ts

@@ -65,7 +65,7 @@ const schoolRoutes: RouteRecordRaw[] = JSON.parse(
           path: "example",
           component: "dashboard/example",
           meta: {
-            title: "数据看板示例",
+            title: "优秀教学效果示例",
             name: "DashboardExample",
             hidden: true,
           },

+ 7 - 1
src/views/login/index.vue

@@ -142,7 +142,7 @@ function handleLogin() {
         })
         .catch((error) => {
           console.log("登录", error);
-          //ElMessage.error(error.message || "您输入的账号或密码错误!");
+          ElMessage.error(error.message || "您输入的账号或密码错误!");
           // 验证失败,重新生成验证码
           new Error("您输入的账号或密码错误");
         })
@@ -287,4 +287,10 @@ function handleLogin() {
 :deep(.el-checkbox__input.is-checked + .el-checkbox__label) {
   color: #727272;
 }
+
+:deep(.el-input .el-input__wrapper .el-input__inner:autofill),
+:deep(.el-input .el-input__wrapper .el-input__inner:-webkit-autofill) {
+  box-shadow: 0 0 0 1000px transparent inset !important;
+  -webkit-text-fill-color: #747474 !important;
+}
 </style>