shaogen1995 1 éve
szülő
commit
b784ac40c2
3 módosított fájl, 4 hozzáadás és 3 törlés
  1. 1 1
      src/pages/B3Push/index.tsx
  2. 1 1
      src/store/action/B3Push.ts
  3. 2 1
      src/utils/http.ts

+ 1 - 1
src/pages/B3Push/index.tsx

@@ -328,7 +328,7 @@ function B3Push() {
             },
             getCheckboxProps: (item) => {
               return {
-                disabled: !(item.pushStatus !== 2 && item.jsonStatus !== 2),
+                disabled: item.pushStatus === 2 && item.jsonStatus === 2,
               };
             },
           }}

+ 1 - 1
src/store/action/B3Push.ts

@@ -20,5 +20,5 @@ export const B3_APIgetlist = (data: any) => {
  * 点击推送
  */
 export const B3_APIpush = (arr: string[]) => {
-  return http.post(`cms/push/send`, { sceneCodes: arr });
+  return http.post(`cms/push/send`, arr);
 };

+ 2 - 1
src/utils/http.ts

@@ -10,7 +10,8 @@ export const baseURL =
   // process.env.NODE_ENV === "development"
   //   ? "http://192.168.20.61:8057/api/"
   //   : "";
-  process.env.NODE_ENV === "development" ? "https://tower3d.4dkankan.com" : "";
+  // process.env.NODE_ENV === "development" ? "https://tower3d.4dkankan.com" : ""; //正式环境
+  process.env.NODE_ENV === "development" ? "https://sit-tieta3d.4dage.com" : ""; //测试环境
 
 // 处理  类型“AxiosResponse<any, any>”上不存在属性“code”
 declare module "axios" {