style: 格式化代码

This commit is contained in:
xingyu4j
2022-08-06 00:59:24 +08:00
parent baf5d87d32
commit 48427994d4
5 changed files with 1308 additions and 1292 deletions

View File

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