diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index 0f58093..91af261 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -115,6 +115,7 @@ import axios from "axios"; import {ref} from "vue"; import {integer} from "vue-types"; import {getConfigKey} from "@/api/infra/config"; +import {config} from '@/config/axios/config' defineOptions({ name: 'UploadFile' }) const colors = [ @@ -204,10 +205,10 @@ const SyncFiles = async () => { for (const Name of fileList.value) { const fName = Name as UploadUserFile & {page?: number,lodTxt?: String}; fName.lodTxt="10%" - if (fName.page==100){ - fName.lodTxt="完成" - continue - } + // if (fName.page==100){ + // fName.lodTxt="完成" + // continue + // } //判断是否全部上传 await delay(100); fName.page = 20; @@ -254,7 +255,8 @@ const SyncFiles = async () => { const add = addMap[fileExt] || ''; // 默认值为空字符串对应路径获取对应接口 fName.page = 90; fName.lodTxt="90%" - const response = await axios.post(`http://192.168.1.15:8000/${add}?path=${filePath}`); + // console.log(`${config.ai_url}/${add}?path=${filePath}`) + const response = await axios.post(`${config.ai_url}/${add}?path=${filePath}`); upDing.value=false console.log("response",response) await delay(100);