## 问题 登录页面验证码图片无法显示,且验证码已禁用但输入框仍然显示 ## 解决方案 当captchaEnabled=false时,完全隐藏验证码输入框和图片 ## 修改内容 1. 添加captchaEnabled响应式变量控制显示 2. 使用v-if条件渲染验证码输入框 3. 根据captchaEnabled动态设置验证规则 ## 用户体验 - 验证码启用:显示输入框和图片,必填 - 验证码禁用:完全隐藏,用户只需输入用户名密码 --- 作者:湖北新华业务中台研发团队 |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| README.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
README.md
Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.