田源
2023-08-30 de2f906b14f178fc688ae3a7d2ea38849051060a
首页密码策略修改
已修改4个文件
13 ■■■■■ 文件已修改
Source/UBCS-WEB/src/page/index/top/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/page/lock/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/page/login/userlogin.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/views/wel/index.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/UBCS-WEB/src/page/index/top/index.vue
@@ -246,6 +246,7 @@
            resetRouter();
            this.$router.push({path: "/login"});
          });
          localStorage.removeItem("pageFlag");
        });
      }
    }
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" });
        });
Source/UBCS-WEB/src/page/login/userlogin.vue
@@ -192,7 +192,6 @@
  },
  props: [],
  methods: {
    // 这个其实跟下面delok一个效果,怕不实现写了两次,
    closehandle(){
      removeToken()
    },
@@ -269,7 +268,6 @@
                  type: "warning",
                  message: "密码策略已被修改,请重新修改密码!"
                })
                // 1.5秒后执行 弹出框显示
                setTimeout(()=>{
                  this.dialogFormVisible=true
                },1500)
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组件关闭弹窗的延迟回调,这里没有用关闭弹窗的方法,因为当用户点击确认也是关闭弹窗,如果登录成功弹窗关闭后也是会清除token回到登录页
      //Xdelhandle是点击X号关闭弹唱,delhandle是点击取消关闭弹窗,在这分了两个事件
      Xdelhandle() {
        removeToken()
        this.dialogFormVisible = false