feat: uniapp 适配aj-captcha

This commit is contained in:
xingyu4j
2022-08-06 00:57:46 +08:00
parent af2b1eb25f
commit baf5d87d32
13 changed files with 1896 additions and 201 deletions

View File

@ -0,0 +1,17 @@
import config from '@/config'
const baseUrl = config.baseUrl
export const myRequest = (option={})=>{
return new Promise((reslove,reject)=>{
uni.request({
url: baseUrl + option.url,
data :option.data,
method:option.method || "GET",
success: (result) => {
reslove(result)
},
fail:(error)=>{
reject(error)
}
})
})
}