From e8c8f40bae64375c4eedd2dd69c6c1122aa2654a Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Tue, 31 Oct 2023 12:19:35 +0800 Subject: [PATCH] :bug: fix #278, #277 --- feature/src/assets/ant-reset.less | 5 ----- public/preload.js | 2 +- src/main/browsers/runner.ts | 2 ++ 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/feature/src/assets/ant-reset.less b/feature/src/assets/ant-reset.less index 19b4db9..e35d071 100644 --- a/feature/src/assets/ant-reset.less +++ b/feature/src/assets/ant-reset.less @@ -1,8 +1,3 @@ -@import "~ant-design-vue/dist/antd.less"; // 引入官方提供的 less 样式入口文件 - -@primary-color: #ff4ea4; // 全局主色 -@error-color: #ff4ea4; // 错误色 - :root { --color-text-primary: rgba(0, 0, 0, 0.85); --color-text-content: #141414; diff --git a/public/preload.js b/public/preload.js index f6847ed..0f53e7a 100644 --- a/public/preload.js +++ b/public/preload.js @@ -5,7 +5,7 @@ const path = require('path'); const appPath = app.getPath('userData'); -const baseDir = path.join(appPath, './rubick-plugins'); +const baseDir = path.join(appPath, './rubick-plugins-new'); const ipcSendSync = (type, data) => { const returnValue = ipcRenderer.sendSync('msg-trigger', { diff --git a/src/main/browsers/runner.ts b/src/main/browsers/runner.ts index 1460c75..6d69514 100644 --- a/src/main/browsers/runner.ts +++ b/src/main/browsers/runner.ts @@ -166,6 +166,8 @@ export default () => { const removeView = (window: BrowserWindow) => { if (!view) return; window.removeBrowserView(view); + window.setBrowserView(null); + view.webContents.destroy(); // window.setSize(800, 60); executeHooks('PluginOut', null); window.webContents?.executeJavaScript(`window.initRubick()`);