@@ -30,7 +30,7 @@
</div>
</el-popover>
- <el-dialog title="修改密码" :visible.sync="isResetPwd" v-if="isResetPwd" width="30%" append-to-body>
+ <el-dialog title="修改密码" :visible.sync="isResetPwd" v-if="isResetPwd" :close="close" width="30%" append-to-body>
<resetPwd :user="user" />
</el-dialog>
@@ -104,6 +104,9 @@ import Cookies from 'js-cookie';
location.href = '/index';
})
}).catch(() => {});
+ },
+ close(){
+ this.isResetPwd=false;
}
},
computed: {},
@@ -56,12 +56,13 @@ export default {
if (valid) {
updateUserPwd(this.user.oldPassword, this.user.newPassword).then(response => {
this.$modal.msgSuccess("修改成功");
+ this.$emit("close");
});
close() {
- this.$tab.closePage();
};