|
|
@@ -81,7 +81,9 @@
|
|
|
import { message } from 'ant-design-vue'
|
|
|
import { useMyResourceStore } from '@/store/myResource'
|
|
|
import SparkMD5 from 'spark-md5'
|
|
|
- import config from '@/config/reSource'
|
|
|
+ import sysConfig from '@/config/index'
|
|
|
+ import rsConfig from '@/config/reSource'
|
|
|
+ import tool from '@/utils/tool'
|
|
|
import {
|
|
|
UploadOutlined,
|
|
|
DeleteOutlined,
|
|
|
@@ -128,7 +130,7 @@
|
|
|
})
|
|
|
|
|
|
const options = ref({
|
|
|
- target: `${config.baseContext}/filetransfer/uploadfile`,
|
|
|
+ target: `${sysConfig.API_URL}${rsConfig.baseContext}/filetransfer/uploadfile`,
|
|
|
chunkSize: 1024 * 1024,
|
|
|
fileParameterName: 'file',
|
|
|
maxChunkRetries: 3,
|
|
|
@@ -147,7 +149,7 @@
|
|
|
}
|
|
|
},
|
|
|
headers: {
|
|
|
- // token: getCookies(getConfig().tokenKeyName)
|
|
|
+ token: tool.data.get('TOKEN')
|
|
|
},
|
|
|
query: () => {}
|
|
|
})
|