@@ -404,6 +404,13 @@ export default {
if (val) {
this.handlePayCodeInput()
}
+ },
+ payCodeDialogVisible (val) {
+ if (val) {
+ this.$nextTick(() => {
+ this.$refs.payCodeInputRef?.focus()
+ })
+ }
@@ -206,6 +206,7 @@
width="50%">
<el-input
autofocus
+ ref="payCodeInputRef"
v-model="payCode"
></el-input>
<div class="dialog-footer" style="margin-top: 10px;">