Compare commits

..

No commits in common. "6f9a2e3f2a9a90edd82e231ba75a1429388a9f0c" and "2e4e30abc0091d10403dddedc22eba3f2db6e666" have entirely different histories.

View File

@ -115,7 +115,6 @@ 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 = [
@ -205,10 +204,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;
@ -255,8 +254,7 @@ const SyncFiles = async () => {
const add = addMap[fileExt] || ''; //
fName.page = 90;
fName.lodTxt="90%"
// console.log(`${config.ai_url}/${add}?path=${filePath}`)
const response = await axios.post(`${config.ai_url}/${add}?path=${filePath}`);
const response = await axios.post(`http://192.168.1.15:8000/${add}?path=${filePath}`);
upDing.value=false
console.log("response",response)
await delay(100);
@ -437,10 +435,6 @@ const handleFileSuccess: UploadProps['onSuccess'] = (res: any): void => {
if (uploadList.value.length == uploadNumber.value) {
fileList.value.push(...uploadList.value)
MysqlUrl.value.push(...uploadList.value)
const updatedFileStatus = [...props.fileStatus];
updatedFileStatus.push(10);
emit('update:fileStatus', updatedFileStatus);
// console.log("updatedFileStatus",updatedFileStatus)
// console.log("fileList.value",fileList.value)
// console.log("MysqlUrl.value",MysqlUrl.value)
uploadList.value = []