From de2f906b14f178fc688ae3a7d2ea38849051060a Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 30 八月 2023 16:23:33 +0800
Subject: [PATCH] 首页密码策略修改

---
 Source/UBCS-WEB/src/page/login/userlogin.vue |    2 --
 Source/UBCS-WEB/src/page/lock/index.vue      |    1 +
 Source/UBCS-WEB/src/views/wel/index.vue      |    9 ++++++---
 Source/UBCS-WEB/src/page/index/top/index.vue |    1 +
 4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Source/UBCS-WEB/src/page/index/top/index.vue b/Source/UBCS-WEB/src/page/index/top/index.vue
index 5b10db3..3d2c4cb 100644
--- a/Source/UBCS-WEB/src/page/index/top/index.vue
+++ b/Source/UBCS-WEB/src/page/index/top/index.vue
@@ -246,6 +246,7 @@
             resetRouter();
             this.$router.push({path: "/login"});
           });
+          localStorage.removeItem("pageFlag");
         });
       }
     }
diff --git a/Source/UBCS-WEB/src/page/lock/index.vue b/Source/UBCS-WEB/src/page/lock/index.vue
index 2e227d3..44a11fa 100644
--- a/Source/UBCS-WEB/src/page/lock/index.vue
+++ b/Source/UBCS-WEB/src/page/lock/index.vue
@@ -48,6 +48,7 @@
         cancelButtonText: "鍙栨秷",
         type: "warning"
       }).then(() => {
+        localStorage.removeItem("pageFlag");
         this.$store.dispatch("LogOut").then(() => {
           this.$router.push({ path: "/login" });
         });
diff --git a/Source/UBCS-WEB/src/page/login/userlogin.vue b/Source/UBCS-WEB/src/page/login/userlogin.vue
index 2d86517..b08bc18 100644
--- a/Source/UBCS-WEB/src/page/login/userlogin.vue
+++ b/Source/UBCS-WEB/src/page/login/userlogin.vue
@@ -192,7 +192,6 @@
   },
   props: [],
   methods: {
-    // 杩欎釜鍏跺疄璺熶笅闈elok涓�涓晥鏋滐紝鎬曚笉瀹炵幇鍐欎簡涓ゆ,
     closehandle(){
       removeToken()
     },
@@ -269,7 +268,6 @@
                   type: "warning",
                   message: "瀵嗙爜绛栫暐宸茶淇敼锛岃閲嶆柊淇敼瀵嗙爜锛�"
                 })
-                // 1.5绉掑悗鎵ц 寮瑰嚭妗嗘樉绀�
                 setTimeout(()=>{
                   this.dialogFormVisible=true
                 },1500)
diff --git a/Source/UBCS-WEB/src/views/wel/index.vue b/Source/UBCS-WEB/src/views/wel/index.vue
index aff2c5b..2d2da83 100644
--- a/Source/UBCS-WEB/src/views/wel/index.vue
+++ b/Source/UBCS-WEB/src/views/wel/index.vue
@@ -182,13 +182,18 @@
             {required: true, message: '璇疯緭纭瀵嗙爜', trigger: 'blur'}
           ]
         },
+        pageInitialized:false,
       };
     },
     // 鎷垮埌userid璇锋眰鎺ュ彛
     created() {
       this.updataArr = JSON.parse(localStorage.getItem("updataid"))
       this.userid = this.$store.state.user.upadatastatus.user_id
-      this.checkhandle()
+      const pageFlag = localStorage.getItem("pageFlag")
+      if (pageFlag === null) {
+        this.checkhandle()
+        localStorage.setItem("pageFlag", true)
+      }
     },
     computed: {
       ...mapGetters(["userInfo", "flowRoutes"]),
@@ -197,8 +202,6 @@
       handleChange(val) {
         window.console.log(val);
       },
-      //element缁勪欢鍏抽棴寮圭獥鐨勫欢杩熷洖璋冿紝杩欓噷娌℃湁鐢ㄥ叧闂脊绐楃殑鏂规硶锛屽洜涓哄綋鐢ㄦ埛鐐瑰嚮纭涔熸槸鍏抽棴寮圭獥锛屽鏋滅櫥褰曟垚鍔熷脊绐楀叧闂悗涔熸槸浼氭竻闄oken鍥炲埌鐧诲綍椤�
-      //Xdelhandle鏄偣鍑籜鍙峰叧闂脊鍞�,delhandle鏄偣鍑诲彇娑堝叧闂脊绐�,鍦ㄨ繖鍒嗕簡涓や釜浜嬩欢
       Xdelhandle() {
         removeToken()
         this.dialogFormVisible = false

--
Gitblit v1.9.3