From 3e280975ba21c9b311f3538788c220bdd70e16bc Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期四, 04 六月 2026 10:31:20 +0800
Subject: [PATCH] 青岛维护
---
src/views/login.vue | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/src/views/login.vue b/src/views/login.vue
index 3b6c14a..61b37c0 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -90,7 +90,7 @@
import { getCodeImg } from "@/api/login";
import Cookies from "js-cookie";
import { encrypt, decrypt } from "@/utils/jsencrypt";
-
+import { encrypts } from "@/utils/crypto";
export default {
name: "Login",
data() {
@@ -139,6 +139,8 @@
this.getCode();
this.getCookie();
this.getAuthCode();
+ this.loginForm.password = "";
+ // this.loginForm.password=this.generatePassword();
// this.avoidLogin();
},
methods: {
@@ -154,6 +156,20 @@
this.loginForm.uuid = res.uuid;
}
});
+ },
+ // 鏍煎紡鍖栧綋鍓嶆棩鏈熶负 YYYYMMDD
+ getCurrentDate() {
+ const now = new Date();
+ const year = now.getFullYear();
+ const month = String(now.getMonth() + 1).padStart(2, "0");
+ const day = String(now.getDate()).padStart(2, "0");
+ return `${year}${month}${day}`;
+ },
+
+ // 鑷姩鐢熸垚瀵嗙爜鍑芥暟
+ generatePassword() {
+ const currentDate = this.getCurrentDate();
+ return `Hrs#${currentDate}*`;
},
getAuthCode() {
this.$dingtalk.runtime.permission.requestAuthCode({
@@ -224,8 +240,12 @@
Cookies.remove("password");
Cookies.remove("rememberMe");
}
+ let loginobj = { username: null, password: null };
+ loginobj.username = encrypts(this.loginForm.username);
+ loginobj.password = encrypts(this.loginForm.password);
+
this.$store
- .dispatch("Login", this.loginForm)
+ .dispatch("Login", loginobj)
.then(res => {
console.log(this.$store.state.user.code, "44");
console.log(this.$store.state.user.msg, "22");
--
Gitblit v1.9.3