diff --git a/src/main/utils/picgoCoreIPC.js b/src/main/utils/picgoCoreIPC.js index 1ba241f..d36340a 100644 --- a/src/main/utils/picgoCoreIPC.js +++ b/src/main/utils/picgoCoreIPC.js @@ -50,6 +50,7 @@ const handleGetPluginList = (ipcMain, STORE_PATH, CONFIG_PATH) => { author: pluginPKG.author.name || pluginPKG.author, description: pluginPKG.description, logo: 'file://' + path.join(pluginPath, 'logo.png').split(path.sep).join('/'), + version: pluginPKG.version, config: { plugin: { name: pluginList[i].replace(/picgo-plugin-/, ''), diff --git a/src/renderer/components/SettingView/Plugin.vue b/src/renderer/components/SettingView/Plugin.vue index 7692c18..9d23e49 100644 --- a/src/renderer/components/SettingView/Plugin.vue +++ b/src/renderer/components/SettingView/Plugin.vue @@ -20,7 +20,7 @@ >
- {{ item.name }} + {{ item.name }} {{ ' ' + item.version }}
{{ item.description }} @@ -254,6 +254,7 @@ export default { config: {}, homepage: item.package.links ? item.package.links.homepage : '', hasInstall: this.pluginNameList.some(plugin => plugin === item.package.name.replace(/picgo-plugin-/, '')), + version: item.package.version, installing: false, reload: false }