Skip to content

Commit

Permalink
fix: security
Browse files Browse the repository at this point in the history
  • Loading branch information
jonssonyan committed Oct 31, 2024
1 parent 89ccb02 commit 87af766
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions frontend/src/views/account/list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -920,15 +920,16 @@ onMounted(() => {
handleQuery();
if (route.query.focus === "change-pass") {
nextTick(() => {
handleUpdate({ id: 1 });
setTimeout(() => {
const inputPass = dataFormPassRef.value.$el.querySelector(
".el-input__wrapper input"
);
if (inputPass) {
inputPass.focus();
}
}, 100);
handleUpdate({ id: 1 }).then(() => {
setTimeout(() => {
const inputPass = dataFormPassRef.value.$el.querySelector(
".el-input__wrapper input"
);
if (inputPass) {
inputPass.focus();
}
}, 50);
});
});
}
});
Expand Down

0 comments on commit 87af766

Please sign in to comment.