| | |
| | | |
| | | <script> |
| | | import { updateUserProfile } from "@/api/system/user"; |
| | | import Global from "@/layout/components/global.js"; |
| | | |
| | | export default { |
| | | props: { |
| | |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | updateUserProfile(this.user).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" }); |
| | | } |