🐛 fix: remove error logging for empty result and refresh extensions after upload
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user