We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ccb02 commit 87af766Copy full SHA for 87af766
frontend/src/views/account/list/index.vue
@@ -920,15 +920,16 @@ onMounted(() => {
920
handleQuery();
921
if (route.query.focus === "change-pass") {
922
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);
+ handleUpdate({ id: 1 }).then(() => {
+ setTimeout(() => {
+ const inputPass = dataFormPassRef.value.$el.querySelector(
+ ".el-input__wrapper input"
+ );
+ if (inputPass) {
+ inputPass.focus();
+ }
+ }, 50);
932
+ });
933
});
934
}
935
0 commit comments