错误修复
This commit is contained in:
parent
bcbc84ff12
commit
de8bf98371
@ -165,7 +165,7 @@ const upload = async (myFile:any) => {
|
||||
}
|
||||
formData.append('file', myFile);//拿到的信息来加入form
|
||||
try {
|
||||
console.log("ok")
|
||||
// console.log("ok")
|
||||
const response = await axios.post(`${config.only_url}/admin-api/only/onlyof/update`, formData, configs);
|
||||
console.log("ok",response)
|
||||
} catch (error) {
|
||||
@ -248,6 +248,7 @@ const SyncFiles = async () => {
|
||||
txt: 'add_texts',
|
||||
html: 'add_html',
|
||||
};
|
||||
console.log("66")
|
||||
await delay(100);
|
||||
fName.page = 70;
|
||||
fName.lodTxt="70%"
|
||||
@ -255,12 +256,15 @@ const SyncFiles = async () => {
|
||||
fName.page = 90;
|
||||
fName.lodTxt="90%"
|
||||
const response = await axios.post(`${config.ai_url}/${add}?path=${filePath}`);
|
||||
|
||||
console.log("response",response)
|
||||
if (response.data.response.indexOf("added")==-1){
|
||||
throw new Error("同步错误");
|
||||
}
|
||||
upDing.value=false
|
||||
await delay(100);
|
||||
fName.page = 100;
|
||||
console.log("77")
|
||||
fName.lodTxt="完成"
|
||||
} catch (error) {
|
||||
upDing.value=false
|
||||
|
Loading…
Reference in New Issue
Block a user