RuoYi
2020-12-10 b368ad764f123ced6b48052c490decafe93e5402
ruoyi-ui/src/views/system/user/profile/userInfo.vue
@@ -24,6 +24,7 @@
<script>
import { updateUserProfile } from "@/api/system/user";
import Global from "@/layout/components/global.js";
export default {
  props: {
@@ -62,16 +63,13 @@
      this.$refs["form"].validate(valid => {
        if (valid) {
          updateUserProfile(this.user).then(response => {
            if (response.code === 200) {
              this.msgSuccess("修改成功");
            } else {
              this.msgError(response.msg);
            }
            this.msgSuccess("修改成功");
          });
        }
      });
    },
    close() {
      Global.$emit("removeCache", "closeSelectedTag", this.$route);
      this.$store.dispatch("tagsView/delView", this.$route);
      this.$router.push({ path: "/index" });
    }