Skip to content

Commit

Permalink
feat: #319 PicGO图形化配置界面-优化插件操作体验展示
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 21, 2023
1 parent ff8c1b2 commit 3da5fcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/picgo/setting/PicgoPluginSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ onBeforeMount(() => {
} else {
ElMessage.error(errMsg)
}
reloadPage()
})
picgoUtil.ipcRegisterEvent("picgoHandlePluginIng", (evt, data) => {
Expand Down Expand Up @@ -506,12 +508,10 @@ onBeforeMount(() => {
pluginData.pluginList.forEach((item) => {
if (item.fullName === body) {
item.ing = false
item.hasInstall = success
}
})
if (success) {
picgoUtil.ipcHandleEvent("getPicBeds")
ElMessage.success(t("setting.picgo.plugin.update.success"))
} else {
ElMessage.error(errMsg)
Expand Down
4 changes: 2 additions & 2 deletions utils/otherlib/picgoUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import idUtil from "~/utils/idUtil"
import strUtil from "~/utils/strUtil"
import siyuanBrowserUtil from "~/utils/otherlib/siyuanBrowserUtil"
import { PicgoPageMenuType } from "~/utils/platform/picgo/picgoPlugin"
import browserUtil, { reloadPage } from "~/utils/browserUtil"
import browserUtil from "~/utils/browserUtil"

// Pico上传Api封装
const picGoUploadApi = new PicGoUploadApi()
Expand Down Expand Up @@ -573,7 +573,7 @@ const buildPluginMenu = (plugin, i18nFunc) => {
template.push(enableItem)
template.push(disableItem)
template.push(uninstallItem)
template.push(updateItem)
// template.push(updateItem)

template.push({
label: " -------- ",
Expand Down

0 comments on commit 3da5fcf

Please sign in to comment.