whj 4 天之前
父節點
當前提交
1b5bf8fdb7
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 1
      config/proxy.ts
  2. 1 2
      pages/catalog/index.uvue

+ 1 - 1
config/proxy.ts

@@ -20,7 +20,7 @@ export const proxy = {
 	// 生产环境配置
 	prod: {
 		// 官方测试地址
-		target: "https://www.xiaoxiongcode.com",
+		target: "https://www.xiaoxiongcode.com/api",
 		changeOrigin: true,
 		rewrite: (path: string) => path.replace("/prod", "")
 	}

+ 1 - 2
pages/catalog/index.uvue

@@ -8,12 +8,11 @@ import Loading from '@/components/loading.uvue'
 import { config } from '@/config'
 import { router } from "@/.cool";
 const isLoading = ref(true)
-const isDev = process.env.NODE_ENV == "development";
 const visible = ref<boolean>(false)
 const dataList = ref<SubjectCatalogResult[]>([])
 const catalog = ref<SubjectCatalogResult>()
 async function getDataList() {
-  const res = await fetchSubjectConfigInfo({ id: isDev ? '69c49329091547710d451f9d' : '69c49329091547710d451f9d' })
+  const res = await fetchSubjectConfigInfo({ id: '69c49329091547710d451f9d' })
   dataList.value = res.catalogList || []
   catalog.value = res?.catalogList?.[0]
 }