Skip to content

Commit

Permalink
fix: #400 浏览器插件不能使用http,只能用https-优化请求代理错误处理
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 26, 2023
1 parent 1af26d4 commit 1dd35c2
Show file tree
Hide file tree
Showing 8 changed files with 5,318 additions and 1,995 deletions.
4 changes: 3 additions & 1 deletion components/publish/tab/setting/MetaweblogSetting.vue
Expand Up @@ -158,6 +158,7 @@ const apiTypeInfo = ref(
const valiConf = async () => {
isLoading.value = true
let errMsg
try {
// 先保存
saveConf(true)
Expand All @@ -182,11 +183,12 @@ const valiConf = async () => {
// 刷新状态
setJSONConf(props.apiType, cfg)
} catch (e) {
errMsg = e
console.error(e)
}
if (!apiStatus.value) {
ElMessage.error(t("setting.blog.vali.error"))
ElMessage.error(t("setting.blog.vali.error") + "=>" + errMsg)
} else {
ElMessage.success(t("main.opt.success"))
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -42,7 +42,7 @@
"pinia": "^2.0.27",
"plantuml-encoder": "^1.4.0",
"shorthash2": "^1.0.3",
"simple-xmlrpc": "^1.1.1",
"simple-xmlrpc": "^1.2.0",
"transliteration": "^2.3.5",
"uuid": "^9.0.0",
"vue": "^3.2.37",
Expand Down

0 comments on commit 1dd35c2

Please sign in to comment.