|
@@ -1,4 +1,5 @@
|
|
|
import { useFetch as _useFetch } from '#app'
|
|
|
+import { webSiteRelation } from "../utils/common";
|
|
|
|
|
|
export async function useFetchRaw<T = any>(url: string, options?: any) {
|
|
|
const config = useRuntimeConfig()
|
|
@@ -6,7 +7,7 @@ export async function useFetchRaw<T = any>(url: string, options?: any) {
|
|
|
...(options ?? {}),
|
|
|
headers: {
|
|
|
...(options?.headers || {}),
|
|
|
- 'X-App-Type': config.public.appType
|
|
|
+ 'Web-Site': webSiteRelation[config.public.appType]
|
|
|
},
|
|
|
}
|
|
|
const { data, error, pending, refresh, execute } = await _useFetch<T>(url, newOptions)
|