zxl
2025-06-12 9f16b5c553b479ea12fe368a7ecc748872ea8b98
web_src/src/components/dialog/changePassword.vue
old mode 100644 new mode 100755
@@ -35,6 +35,7 @@
<script>
import crypto from 'crypto'
import userService from "../service/UserService";
export default {
  name: "changePassword",
  props: {},
@@ -96,7 +97,7 @@
          password: this.newPassword
        }
      }).then((res)=> {
        if (res.data === "success"){
        if (res.data.code === 0) {
          this.$message({
            showClose: true,
            message: '修改成功,请重新登录',
@@ -105,7 +106,7 @@
          this.showDialog = false;
          setTimeout(()=>{
            // 删除cookie,回到登录页面
            this.$cookies.remove("session");
            userService.clearUserInfo();
            this.$router.push('/login');
            this.sseSource.close();
          },800)