fix: 号池登录也能打开发送短信

This commit is contained in:
2026-11-10 09:12:56 +08:00
parent 339b169f3c
commit 2346d80f8e
+12 -12
View File
@@ -373,17 +373,17 @@ async function finishNqi() {
<button class="lv-go" type="submit" :disabled="busy">{{ busy ? "登录中" : "登录" }}</button>
</form>
</section>
<n-modal v-model:show="smsRequired" :mask-closable="false" :auto-focus="false">
<div class="lv-sms-sheet" role="dialog" aria-modal="true" aria-labelledby="sms-title">
<button type="button" class="lv-sms-close" aria-label="关闭" @click="backFromSms">×</button>
<h2 id="sms-title">短信认证</h2>
<label for="login-sms">验证码</label>
<div class="lv-sms-row">
<input id="login-sms" v-model="smsCode" placeholder="sms code" autocomplete="one-time-code" @keyup.enter="finishNqi" />
<button type="button" class="lv-sms-send" :disabled="smsSending || countdown > 0" @click="sendSms">{{ countdown > 0 ? `发送(${countdown})` : "发送" }}</button>
</div>
<button class="lv-sms-go" type="button" :disabled="busy || !smsCode.trim()" @click="finishNqi">{{ busy ? "提交中" : "提交" }}</button>
</div>
</n-modal>
</div>
<n-modal v-model:show="smsRequired" :mask-closable="false" :auto-focus="false">
<div class="lv-sms-sheet" role="dialog" aria-modal="true" aria-labelledby="sms-title">
<button type="button" class="lv-sms-close" aria-label="关闭" @click="backFromSms">×</button>
<h2 id="sms-title">短信认证</h2>
<label for="login-sms">验证码</label>
<div class="lv-sms-row">
<input id="login-sms" v-model="smsCode" placeholder="sms code" autocomplete="one-time-code" @keyup.enter="finishNqi" />
<button type="button" class="lv-sms-send" :disabled="smsSending || countdown > 0" @click="sendSms">{{ countdown > 0 ? `发送(${countdown})` : "发送" }}</button>
</div>
<button class="lv-sms-go" type="button" :disabled="busy || !smsCode.trim()" @click="finishNqi">{{ busy ? "提交中" : "提交" }}</button>
</div>
</n-modal>
</template>