bug修复

This commit is contained in:
XaoLi717 2024-10-10 17:42:39 +08:00
parent 2e4e30abc0
commit 6803dcbec6

View File

@ -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);