Browse Source

fix: 调整门户网站样式

周玉环 7 hours ago
parent
commit
3a2223fec2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      xinkeaboard-web/composables/useFetchRaw.ts
  2. 1 1
      xinkeaboard-web/nuxt.config.ts

+ 1 - 1
xinkeaboard-web/composables/useFetchRaw.ts

@@ -4,7 +4,7 @@ import { webSiteFlagRelation, webSiteLanguageRelation } from "../utils/common";
 export async function useFetchRaw<T = any>(url: string, options?: any) {
   const config = useRuntimeConfig()
   const { appType, serverPath } = config.public as any;
-  // url = url.replace('/api/', serverPath)
+  url = url.replace('/api/', serverPath)
   const newOptions = {
     ...(options ?? {}),
     headers: {

+ 1 - 1
xinkeaboard-web/nuxt.config.ts

@@ -7,7 +7,7 @@ const isDev = process.env.NODE_ENV === 'development';
 const appType = process.env.APP_TYPE;
 const SERVICE = process.env.SERVICE;
 export default defineNuxtConfig({
-  ssr: !isDev,
+  // ssr: !isDev,
   nitro: {
     output: {
       dir: isDev ? undefined : `.output-${appType}`