有数音视频订单详情延迟3秒查询,支付回调的情况下,睡眠函数
This commit is contained in:
		
							parent
							
								
									65f0a33dfe
								
							
						
					
					
						commit
						cbc62f1d57
					
				|  | @ -12,7 +12,6 @@ const baseUrl = import.meta.env.VITE_BASE_URL | ||||||
| const httpInterceptor = { | const httpInterceptor = { | ||||||
|   // 拦截前触发
 |   // 拦截前触发
 | ||||||
|   invoke(options) { |   invoke(options) { | ||||||
|     console.log('拦截前参数--->',options); |  | ||||||
|     // 接口请求支持通过 query 参数配置 queryString
 |     // 接口请求支持通过 query 参数配置 queryString
 | ||||||
|     if (options.query) { |     if (options.query) { | ||||||
|       const queryStr = qs.stringify(options.query) |       const queryStr = qs.stringify(options.query) | ||||||
|  | @ -34,7 +33,6 @@ const httpInterceptor = { | ||||||
|     if (token && !options.noToken) { |     if (token && !options.noToken) { | ||||||
|       options.header.Authorization = `Bearer ${token}` |       options.header.Authorization = `Bearer ${token}` | ||||||
|     } |     } | ||||||
|     console.log('拦截后参数--->',options); |  | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -94,6 +94,7 @@ import { getOrderList, refundOrder } from "@/api/ycysp"; | ||||||
| import { getQueryString } from "@/utils/utils"; | import { getQueryString } from "@/utils/utils"; | ||||||
| import { stateConfig, stateColor } from "./config"; | import { stateConfig, stateColor } from "./config"; | ||||||
| import usePay from "./hooks/usePay"; | import usePay from "./hooks/usePay"; | ||||||
|  | 
 | ||||||
| const id = ref(""); | const id = ref(""); | ||||||
| const orderNo = ref(""); | const orderNo = ref(""); | ||||||
| const orderDetail = reactive({}); | const orderDetail = reactive({}); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue