|
|
@@ -182,8 +182,6 @@ import SparkMD5 from 'spark-md5'
|
|
|
import { getAccessToken } from '@/utils/auth'
|
|
|
import { buildFileUrl } from '@/utils'
|
|
|
|
|
|
-const VITE_BASE_URL = ref(import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/')
|
|
|
-
|
|
|
const props = defineProps({
|
|
|
apiUrl: { type: String, required: true },
|
|
|
chunkSize: { type: Number, default: 5 },
|
|
|
@@ -381,7 +379,7 @@ const handlePostFile = async (options) => {
|
|
|
formData.append('file', file)
|
|
|
|
|
|
const result = await request.post({
|
|
|
- url: VITE_BASE_URL.value + props.apiUrl,
|
|
|
+ url: props.apiUrl,
|
|
|
data: formData,
|
|
|
headers: {
|
|
|
authorization: 'Bearer ' + getAccessToken(),
|
|
|
@@ -618,4 +616,4 @@ onBeforeUnmount(() => {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|