|
@@ -4,7 +4,7 @@ import { InboxOutlined } from '@ant-design/icons'
|
|
|
import { MessageFu } from '@/utils/message'
|
|
|
import styles from './index.module.scss'
|
|
|
import { B1Xtype } from '@/pages/B_enterTibet/B1collect/data'
|
|
|
-import { baseURL } from '@/utils/http'
|
|
|
+import { baseUrlTemp, envFlag } from '@/utils/http'
|
|
|
import { fileTypeRes } from '@/store/action/layout'
|
|
|
import { getTokenFu } from '@/utils/storage'
|
|
|
import history from '@/utils/history'
|
|
@@ -12,6 +12,9 @@ import { API_C2dels } from '@/store/action/C2files'
|
|
|
import MyPopconfirm from '../MyPopconfirm'
|
|
|
import { DeleteOutlined } from '@ant-design/icons'
|
|
|
|
|
|
+// 接口地址
|
|
|
+const httpUrl = envFlag ? baseUrlTemp : ''
|
|
|
+
|
|
|
const { Dragger } = Upload
|
|
|
|
|
|
type Props = {
|
|
@@ -33,7 +36,7 @@ function ZupFile({ tableList, moduleId, isShow, closeFu, succFu }: Props) {
|
|
|
// 支持上传文件夹
|
|
|
directory: true,
|
|
|
multiple: true,
|
|
|
- action: baseURL + 'cms/orderCollect/upload',
|
|
|
+ action: httpUrl + '/api/cms/orderCollect/upload',
|
|
|
headers: {
|
|
|
token: getTokenFu()
|
|
|
},
|