窗口修改

This commit is contained in:
zhangxuelin 2024-08-15 09:57:46 +08:00
parent d9ae544022
commit 1dce3f6f70
1 changed files with 2 additions and 2 deletions

View File

@ -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, // 要创建无边框窗口