diff --git a/components/picgo/setting/PicgoConfigSetting.vue b/components/picgo/setting/PicgoConfigSetting.vue
index a3a20214..0574fd5a 100644
--- a/components/picgo/setting/PicgoConfigSetting.vue
+++ b/components/picgo/setting/PicgoConfigSetting.vue
@@ -99,7 +99,7 @@
diff --git a/components/picgo/setting/PicgoPluginSetting.vue b/components/picgo/setting/PicgoPluginSetting.vue
index 3e3ef564..c80d5ee3 100644
--- a/components/picgo/setting/PicgoPluginSetting.vue
+++ b/components/picgo/setting/PicgoPluginSetting.vue
@@ -157,7 +157,14 @@
import picgoUtil from "~/utils/otherlib/picgoUtil"
import { LogFactory } from "~/utils/logUtil"
import { ElMessage, ElMessageBox } from "element-plus"
-import { computed, onBeforeMount, reactive, ref, watch } from "vue"
+import {
+ computed,
+ onBeforeMount,
+ onBeforeUnmount,
+ reactive,
+ ref,
+ watch,
+} from "vue"
import { goToPage } from "~/utils/otherlib/ChromeUtil"
import sysUtil from "~/utils/otherlib/sysUtil"
import { debounce, DebouncedFunc } from "lodash"
@@ -428,6 +435,14 @@ onBeforeMount(() => {
getPluginList()
getSearchResult = debounce(_getSearchResult, 50)
})
+
+// remove events
+onBeforeUnmount(() => {
+ picgoUtil.ipcRemoveEvent("pluginList")
+ picgoUtil.ipcRemoveEvent("installPluginFinished")
+ picgoUtil.ipcRemoveEvent("picgoHandlePluginIng")
+ picgoUtil.ipcRemoveEvent("uninstallSuccess")
+})