Skip to content

Commit 87af766

Browse files
committed
fix: security
1 parent 89ccb02 commit 87af766

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

frontend/src/views/account/list/index.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -920,15 +920,16 @@ onMounted(() => {
920920
handleQuery();
921921
if (route.query.focus === "change-pass") {
922922
nextTick(() => {
923-
handleUpdate({ id: 1 });
924-
setTimeout(() => {
925-
const inputPass = dataFormPassRef.value.$el.querySelector(
926-
".el-input__wrapper input"
927-
);
928-
if (inputPass) {
929-
inputPass.focus();
930-
}
931-
}, 100);
923+
handleUpdate({ id: 1 }).then(() => {
924+
setTimeout(() => {
925+
const inputPass = dataFormPassRef.value.$el.querySelector(
926+
".el-input__wrapper input"
927+
);
928+
if (inputPass) {
929+
inputPass.focus();
930+
}
931+
}, 50);
932+
});
932933
});
933934
}
934935
});

0 commit comments

Comments
 (0)