From 70bbe8ab490c81a2b7aefc0e4a9db8655ace1731 Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 9 Jul 2021 16:10:54 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E8=B6=85=E7=BA=A7?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E6=8F=92=E4=BB=B6=E5=91=BC=E8=B5=B7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/assets/common/utils.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/renderer/assets/common/utils.js b/src/renderer/assets/common/utils.js index 341fceaa..ea198b54 100644 --- a/src/renderer/assets/common/utils.js +++ b/src/renderer/assets/common/utils.js @@ -110,6 +110,20 @@ function mergePlugins(plugins) { target.push(item) } }); + ipcRenderer && ipcRenderer.send('optionPlugin', { + plugins: target.filter((plugin) => { + let hasOption = false; + plugin.features.forEach(fe => { + fe.cmds.forEach(cmd => { + if (cmd.type) { + hasOption = true; + } + }) + }); + return hasOption; + }) + }); + return target }