feat:优化验证码的代码,迁移到 components 目录下
feat:在 register.vue、code-login.vue 里,增加验证码
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user