窗口修改
This commit is contained in:
parent
d9ae544022
commit
1dce3f6f70
|
@ -87,10 +87,10 @@ export function ipcHandle(fn,key, cb) {
|
||||||
let wins_tool = null
|
let wins_tool = null
|
||||||
let winPdf=null
|
let winPdf=null
|
||||||
export const createWindow = async (type, data) => {
|
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) {
|
switch(type) {
|
||||||
case 'tool-sphere': { // 创建-悬浮球
|
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 option = data.option||{}
|
||||||
const defOption = {
|
const defOption = {
|
||||||
frame: false, // 要创建无边框窗口
|
frame: false, // 要创建无边框窗口
|
||||||
|
|
Loading…
Reference in New Issue