import { useFetch as _useFetch } from '#app' import { webSiteRelation } from "../utils/common"; export async function useFetchRaw(url: string, options?: any) { const config = useRuntimeConfig() const newOptions = { ...(options ?? {}), headers: { ...(options?.headers || {}), 'Web-Site': webSiteRelation[config.public.appType] }, } const { data, error, pending, refresh, execute } = await _useFetch(url, newOptions) return { data: { _rawValue: data.value, }, error, pending, refresh, execute, } }