face-edit: fix back button (fix #994)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/1010/head
Varun Patil 2024-01-10 15:53:07 -08:00
parent 032397384b
commit 37881b36b4
1 changed files with 2 additions and 3 deletions

View File

@ -93,12 +93,11 @@ export default defineComponent({
await dav.faceRecognitionRenamePerson(this.name, this.input);
}
this.$router.replace({
await this.close();
await this.$router.replace({
name: this.$route.name as string,
params: { user: this.user, name: this.input },
});
this.close();
} catch (error) {
console.log(error);
showError(