From b876b1a55a3791cc9b092c6f98b3089859fe6f15 Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:59:35 +0800 Subject: [PATCH] fix: remain in the same position of list after rename or delete2 Delete.vue --- frontend/src/components/prompts/Delete.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/prompts/Delete.vue b/frontend/src/components/prompts/Delete.vue index e9689a36..4559b38a 100644 --- a/frontend/src/components/prompts/Delete.vue +++ b/frontend/src/components/prompts/Delete.vue @@ -45,7 +45,7 @@ export default { submit: async function () { buttons.loading("delete"); - window.sessionStorage.setItem('modified', "true"); + window.sessionStorage.setItem("modified", "true"); try { if (!this.isListing) { await api.remove(this.$route.path); @@ -75,8 +75,8 @@ export default { this.$showError(e); if (this.isListing) this.$store.commit("setReload", true); } - Vue.nextTick(() => { - window.sessionStorage.setItem('modified', "false"); + nextTick(() => { + window.sessionStorage.setItem("modified", "false"); }); }, },