🐛 fix: remove error logging for empty result and refresh extensions after upload

This commit is contained in:
Soulter
2025-03-26 15:43:56 +08:00
parent a4e4e36f94
commit 1bb1bc2553
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -56,7 +56,6 @@ class RepoZipUpdator:
raise Exception(f"请求失败,状态码: {response.status}")
result = await response.json()
if not result:
logger.error("返回空的结果")
return []
# if latest:
# ret = self.github_api_release_parser([result[0]])
@@ -357,6 +357,7 @@ export default {
this.upload_file = "";
this.onLoadingDialogResult(1, res.data.message);
this.dialog = false;
this.getExtensions();
// this.$refs.wfr.check();
}).catch((err) => {
this.loading_ = false;
@@ -380,6 +381,7 @@ export default {
this.extension_url = "";
this.onLoadingDialogResult(1, res.data.message);
this.dialog = false;
this.getExtensions();
// this.$refs.wfr.check();
}).catch((err) => {
this.loading_ = false;