| | |
| | | } |
| | | }; |
| | | return { |
| | | test: "1test", |
| | | user: { |
| | | oldPassword: undefined, |
| | | newPassword: undefined, |
| | |
| | | submit() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | updateUserPwd(this.user.oldPassword, this.user.newPassword).then( |
| | | response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | } |
| | | ); |
| | | updateUserPwd(this.user.oldPassword, this.user.newPassword).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | close() { |
| | | this.$store.dispatch("tagsView/delView", this.$route); |
| | | this.$router.push({ path: "/index" }); |
| | | this.$tab.closePage(); |
| | | } |
| | | } |
| | | }; |