@@ -30,10 +30,10 @@
</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>
- </div>
+ </div>
</template>
<script>
@@ -94,6 +94,9 @@ import Cookies from 'js-cookie';
this.isResetPwd=true
});
},
+ close(){
+ this.isResetPwd=false;
+ },
async logout() {
this.$confirm('确定注销并退出系统吗?', '提示', {
confirmButtonText: '确定',
@@ -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();
};