shaogen1995 2 năm trước cách đây
mục cha
commit
8bbcc32ff9

+ 2 - 2
后台管理/src/pages/A1Order/A1SetOrder/index.tsx

@@ -23,7 +23,7 @@ import { A1_APIOgetInfo, A1_APIOsave } from "@/store/action/A1Order";
 import TextArea from "antd/es/input/TextArea";
 
 const tabArr = [
-  { id: 119, name: "南京市博物总管" },
+  { id: 118, name: "南京市博物总管" },
   { id: 114, name: "扬州中国大运河博物馆" },
 ];
 
@@ -46,7 +46,7 @@ type Props = {
 };
 
 function A1SetOrder({ colseFu }: Props) {
-  const [tab, setTab] = useState(119);
+  const [tab, setTab] = useState(118);
 
   const getInfoFuUnit = useCallback(async (id: number) => {
     const res = await A1_APIOgetInfo(id);

+ 6 - 6
后台管理/src/utils/http.ts

@@ -7,10 +7,10 @@ import { domShowFu } from "./domShow";
 // 请求基地址
 export const baseURL =
   // 线下的图片地址需要加上/api/
-  process.env.NODE_ENV === "development"
-    ? "http://192.168.20.61:8052/api/"
-    : "";
-  // process.env.NODE_ENV === "development" ? "https://sit-jswl2.4dage.com" : "";
+  // process.env.NODE_ENV === "development"
+  //   ? "http://192.168.20.61:8052/api/"
+  //   : "";
+  process.env.NODE_ENV === "development" ? "https://sit-jswl2.4dage.com" : "";
 
 // 处理  类型“AxiosResponse<any, any>”上不存在属性“code”
 declare module "axios" {
@@ -23,10 +23,10 @@ declare module "axios" {
 // 创建 axios 实例
 const http = axios.create({
   // --------线下的地址不用加/api/
-  baseURL: baseURL,
+  // baseURL: baseURL,
 
   // --------打包或线上环境接口需要加上api/
-  // baseURL: baseURL + "/api/",
+  baseURL: baseURL + "/api/",
   timeout: 5000,
 });