web_src/src/components/dialog/changePassword.vue
@@ -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)