feat:优化验证码的代码,迁移到 components 目录下

feat:在 register.vue、code-login.vue 里,增加验证码
This commit is contained in:
YunaiV
2025-12-15 21:55:56 +08:00
parent 87821086ef
commit 39c9d18403
13 changed files with 95 additions and 45 deletions

View File

@@ -100,7 +100,7 @@ export function http<T>(options: CustomRequestOptions) {
// 处理其他成功状态HTTP状态码200-299
if (res.statusCode >= 200 && res.statusCode < 300) {
// add by panda 25.12.10:如果设置了 original 为 true则返回原始数据
// add by panda 25.12.10:如果设置了 original 为 true则返回原始数据。例如说:滑块验证码,有自己的返回格式
if (options.original) {
return resolve(responseData as unknown as T)
}

View File

@@ -34,5 +34,6 @@ export interface PageResult<T> {
list: T[]
total: number
}
/** 加载状态枚举 - 从 wot-design-uni 重新导出 */
export type { LoadMoreState } from 'wot-design-uni/components/wd-loadmore/types'