From 1dce3f6f70779379ca06206bebc41a35c5ca82eb Mon Sep 17 00:00:00 2001 From: zhangxuelin <959231531@qq.com> Date: Thu, 15 Aug 2024 09:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AA=97=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/utils/tool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/utils/tool.js b/src/renderer/src/utils/tool.js index a1f0baf..a874e2d 100644 --- a/src/renderer/src/utils/tool.js +++ b/src/renderer/src/utils/tool.js @@ -87,10 +87,10 @@ export function ipcHandle(fn,key, cb) { let wins_tool = null let winPdf=null export const createWindow = async (type, data) => { - if (wins_tool) return console.error('createWindow: win is have') - if (!type) return console.error('createWindow: type is null') switch(type) { case 'tool-sphere': { // 创建-悬浮球 + if (wins_tool) return console.error('createWindow: win is have') + if (!type) return console.error('createWindow: type is null') const option = data.option||{} const defOption = { frame: false, // 要创建无边框窗口