RuoYi
2022-06-26 1def54572acc3bc6a97b454bd9bef19c3c9fa89d
src/views/login.vue
@@ -100,7 +100,7 @@
  proxy.$refs.loginRef.validate(valid => {
    if (valid) {
      loading.value = true;
      // 勾选了需要记住密码设置在cookie中设置记住用户明和名命
      // 勾选了需要记住密码设置在 cookie 中设置记住用户名和密码
      if (loginForm.value.rememberMe) {
        Cookies.set("username", loginForm.value.username, { expires: 30 });
        Cookies.set("password", encrypt(loginForm.value.password), { expires: 30 });
@@ -212,4 +212,4 @@
  height: 40px;
  padding-left: 12px;
}
</style>
</style>