## 问题描述 1. 验证码图片无法正常显示(显示为破损图标) 2. 验证码为必填项,但后端已禁用验证码(captchaEnabled: false) 3. 前端获取验证码数据路径错误(res.img应为res.data.img) ## 修复内容 ### 1. 修正API响应数据路径 ### 2. 验证码改为非必填 ### 3. 动态验证规则 根据后端返回的captchaEnabled状态,动态设置验证码是否必填: ## 测试结果 - ✅ 验证码API正常响应(200 OK) - ✅ 验证码状态:captchaEnabled = false - ✅ 验证码改为非必填,用户可以直接登录 - ✅ 数据路径修正,不再报错 ## 影响范围 - 文件:pangu-ui/src/views/login/index.vue - 功能:登录页面验证码处理逻辑 --- **作者**:湖北新华业务中台研发团队 **日期**:2026-02-01 |
||
|---|---|---|
| .. | ||
| 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.