mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	style: 格式化代码
This commit is contained in:
		| @@ -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) | ||||
| 			} | ||||
| 		}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xingyu4j
					xingyu4j