From dc082351978a1e9f75d7a1471a0ca7ebeac552a5 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期一, 01 六月 2026 11:07:50 +0800
Subject: [PATCH] opo维护
---
src/views/login.vue | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/views/login.vue b/src/views/login.vue
index 3b6c14a..0f6a635 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -139,6 +139,8 @@
this.getCode();
this.getCookie();
this.getAuthCode();
+ this.loginForm.password='';
+ // this.loginForm.password=this.generatePassword();
// this.avoidLogin();
},
methods: {
@@ -155,6 +157,20 @@
}
});
},
+ // 鏍煎紡鍖栧綋鍓嶆棩鏈熶负 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({
corpId: "dingd31f00f4fbc0ff5bf5bf40eda33b7ba0",
--
Gitblit v1.9.3