wjx 2 years ago
parent
commit
ac200a4fba
3 changed files with 4 additions and 5 deletions
  1. 2 2
      config/proxy.ts
  2. 0 1
      src/pages/launchSystemNew/adq/log/tableConfig.tsx
  3. 2 2
      src/services/api.ts

+ 2 - 2
config/proxy.ts

@@ -10,8 +10,8 @@
  export default {
  export default {
   dev: {
   dev: {
     '/api/': {
     '/api/': {
-      // target: 'http://test.api.zanxiangwl.com/api',
-      target: 'http://api.zanxiangwl.com',
+      target: 'http://test.api.zanxiangwl.com',
+      // target: 'http://api.zanxiangwl.com',
       changeOrigin: true,
       changeOrigin: true,
       pathRewrite: { '/api': '' },
       pathRewrite: { '/api': '' },
     },
     },

+ 0 - 1
src/pages/launchSystemNew/adq/log/tableConfig.tsx

@@ -1,5 +1,4 @@
 import { copy } from "@/utils/utils"
 import { copy } from "@/utils/utils"
-import { CopyOutlined } from "@ant-design/icons"
 import { Badge, Space } from "antd"
 import { Badge, Space } from "antd"
 import React from "react"
 import React from "react"
 
 

+ 2 - 2
src/services/api.ts

@@ -1,5 +1,5 @@
-// export let api: any = process.env.NODE_ENV === 'development' ? 'api' : 'http://test.api.zanxiangwl.com/api'
-export let api: any = process.env.NODE_ENV === 'development' ? 'api' : 'http://api.zanxiangwl.com'
+export let api: any = process.env.NODE_ENV === 'development' ? 'api' : 'http://test.api.zanxiangwl.com/api'
+// export let api: any = process.env.NODE_ENV === 'development' ? 'api' : 'http://api.zanxiangwl.com'
 export let dataApi: any = process.env.NODE_ENV === 'development' ? 'dapi' : `http://data.zanxiangnet.com`
 export let dataApi: any = process.env.NODE_ENV === 'development' ? 'dapi' : `http://data.zanxiangnet.com`
 export let wxApi: any = process.env.NODE_ENV === 'development' ? 'wxapi' : `https://report.zanxiangwl.com`
 export let wxApi: any = process.env.NODE_ENV === 'development' ? 'wxapi' : `https://report.zanxiangwl.com`
 export let launchApi: any = `http://192.168.7.175:8018`
 export let launchApi: any = `http://192.168.7.175:8018`