|
@@ -2,7 +2,7 @@
|
|
|
import qs from 'qs'
|
|
import qs from 'qs'
|
|
|
import { useUserStore } from '@/store'
|
|
import { useUserStore } from '@/store'
|
|
|
import { platform } from '@/utils/platform'
|
|
import { platform } from '@/utils/platform'
|
|
|
-import { getEvnBaseUrl } from '@/utils'
|
|
|
|
|
|
|
+import { getEnvBaseUrl } from '@/utils'
|
|
|
|
|
|
|
|
export type CustomRequestOptions = UniApp.RequestOptions & {
|
|
export type CustomRequestOptions = UniApp.RequestOptions & {
|
|
|
query?: Record<string, any>
|
|
query?: Record<string, any>
|
|
@@ -11,7 +11,7 @@ export type CustomRequestOptions = UniApp.RequestOptions & {
|
|
|
} & IUniUploadFileOptions // 添加uni.uploadFile参数类型
|
|
} & IUniUploadFileOptions // 添加uni.uploadFile参数类型
|
|
|
|
|
|
|
|
// 请求基准地址
|
|
// 请求基准地址
|
|
|
-const baseUrl = getEvnBaseUrl()
|
|
|
|
|
|
|
+const baseUrl = getEnvBaseUrl()
|
|
|
|
|
|
|
|
// 拦截器配置
|
|
// 拦截器配置
|
|
|
const httpInterceptor = {
|
|
const httpInterceptor = {
|