fix: yaml editor do not update when upload same file

This commit is contained in:
jialin
2025-11-13 16:53:11 +08:00
parent b61c0d6dee
commit aee9566bbb
13 changed files with 42 additions and 98 deletions
+1 -2
View File
@@ -196,6 +196,7 @@ export async function queryModelScopeModels(
Criterion: [...(tagsCriterion || []), ...(tasksCriterion || [])]
}
: {};
const res = await fetch(setProxyUrl(`${MODEL_SCOPE_LIST_MODEL_API}`), {
method: 'PUT',
signal: config?.signal,
@@ -212,7 +213,6 @@ export async function queryModelScopeModels(
});
if (!res.ok) {
throw new Error('Network response was not ok');
return null;
}
return res.json();
}
@@ -246,7 +246,6 @@ export async function queryModelScopeModelFiles(
if (!res.ok) {
throw new Error('Network response was not ok');
return null;
}
return res.json();