From a941c1b488581e7a3e43e613d06d6c8af31f8edb Mon Sep 17 00:00:00 2001
From: 若依 <yzz_ivy@163.com>
Date: 星期三, 09 十二月 2020 10:27:34 +0800
Subject: [PATCH] !134 修改 代码生成 预览无法左右滑动 Merge pull request !134 from 〝走走停停/master

---
 ruoyi-ui/src/views/system/user/profile/resetPwd.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ruoyi-ui/src/views/system/user/profile/resetPwd.vue b/ruoyi-ui/src/views/system/user/profile/resetPwd.vue
index e39948e..bdefa79 100644
--- a/ruoyi-ui/src/views/system/user/profile/resetPwd.vue
+++ b/ruoyi-ui/src/views/system/user/profile/resetPwd.vue
@@ -18,6 +18,7 @@
 
 <script>
 import { updateUserPwd } from "@/api/system/user";
+import Global from "@/layout/components/global.js";
 
 export default {
   data() {
@@ -57,15 +58,14 @@
         if (valid) {
           updateUserPwd(this.user.oldPassword, this.user.newPassword).then(
             response => {
-              if (response.code === 200) {
-                this.msgSuccess("修改成功");
-              }
+              this.msgSuccess("修改成功");
             }
           );
         }
       });
     },
     close() {
+      Global.$emit("removeCache", "closeSelectedTag", this.$route);
       this.$store.dispatch("tagsView/delView", this.$route);
       this.$router.push({ path: "/index" });
     }

--
Gitblit v1.9.2