Skip to content

fix: 默认值错误导致加载空节点 #2280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 13, 2024
Prev Previous commit
Next Next commit
fix: 手机号placeholder显示问题
手机号登录时,点击手机号输入框,不输入内容,再点击国际区号,手机号的placeholder还是空的
  • Loading branch information
Younglina authored Mar 6, 2024
commit be7cef958d3003d557c55b1826e85a01f14237d6
6 changes: 3 additions & 3 deletions src/views/loginAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<div class="title">{{ $t('login.loginText') }}</div>
<div class="section-2">
<div v-show="mode === 'phone'" class="input-box">
<div class="container" :class="{ active: inputFocus === 'phone' }">
<div class="container" :class="{ active: ['phone', 'countryCode'].includes(inputFocus) }">
<svg-icon icon-class="mobile" />
<div class="inputs">
<input
id="countryCode"
v-model="countryCode"
:placeholder="
inputFocus === 'phone' ? '' : $t('login.countryCode')
inputFocus === 'countryCode' ? '' : $t('login.countryCode')
"
@focus="inputFocus = 'phone'"
@focus="inputFocus = 'countryCode'"
@blur="inputFocus = ''"
@keyup.enter="login"
/>
Expand Down