Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
testMenu
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡芬
testMenu
Commits
8452d20b
提交
8452d20b
authored
4月 20, 2023
作者:
caicai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
移除
上级
a4249537
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
23 行删除
+13
-23
cateWin.js
src/main/plugins/cateWin.js
+1
-1
mainWindow.js
src/main/windows/mainWindow.js
+4
-11
index.vue
src/renderer/components/DragBox/index.vue
+3
-3
Home.vue
src/renderer/views/Home.vue
+5
-8
没有找到文件。
src/main/plugins/cateWin.js
浏览文件 @
8452d20b
...
...
@@ -58,7 +58,7 @@ class cateWin {
// 将id挂载到主窗口
return
;
}
console
.
log
(
'item'
,
item
)
//
console.log('item', item)
len
=
item
.
softList
&&
item
.
softList
.
length
||
0
;
console
.
log
(
len
)
currentWidth
=
item
.
softList
&&
len
?
(
len
*
50
+
(
len
-
1
)
*
24
+
80
)
:
20
;
...
...
src/main/windows/mainWindow.js
浏览文件 @
8452d20b
...
...
@@ -96,7 +96,7 @@ class MainWindow {
this
.
win
.
on
(
'closed'
,
()
=>
{
this
.
win
=
null
console
.
log
(
'windows closed'
)
//
console.log('windows closed')
})
}
...
...
@@ -171,10 +171,10 @@ class MainWindow {
}
let
opt
=
this
.
winOpts
([
args
.
width
,
args
.
height
])
if
(
args
.
parentId
)
{
console
.
log
(
'parentId:'
+
args
.
parentId
)
//
console.log('parentId:' + args.parentId)
opt
.
parent
=
this
.
getWindow
(
args
.
parentId
)
}
else
if
(
this
.
main
)
{
console
.
log
(
666
)
//
console.log(666)
}
if
(
typeof
args
.
modal
===
'boolean'
)
opt
.
modal
=
args
.
modal
...
...
@@ -272,7 +272,7 @@ class MainWindow {
if
(
win
.
webContents
.
webType
)
{
let
focusWin
=
BrowserWindow
.
getFocusedWindow
();
if
(
focusWin
!=
null
)
return
;
console
.
log
(
'需要隐藏'
)
// 需要隐藏
event
.
sender
.
send
(
'manageVisible'
,
false
);
if
(
win
.
webContents
.
webType
===
'appManage'
)
win
.
hide
();
...
...
@@ -280,12 +280,6 @@ class MainWindow {
let
manageWin
=
this
.
getWinOf
(
'appManage'
);
if
(
manageWin
!=
null
)
manageWin
.
hide
();
}
// let winList = this.getAllWindows();
// console.log(winList[0].webContents.webType, winList[1].webContents.webType)
// if(winList[1].webContents.webType === 'mainWindow') {
// console.log('通知')
// winList[1].webContents.send('manageVisible',false);
// }
}
})
...
...
@@ -324,7 +318,6 @@ class MainWindow {
if
(
this
.
getWindow
(
Number
(
i
)))
{
this
.
getWindow
(
Number
(
i
)).
close
()
}
else
{
console
.
log
(
'---------------------------'
)
app
.
quit
()
}
}
...
...
src/renderer/components/DragBox/index.vue
浏览文件 @
8452d20b
...
...
@@ -201,16 +201,16 @@ export default {
this
.
cateName
=
""
;
},
sureAdd
()
{
console
.
log
(
'sureAdd'
,
this
.
cateName
)
// 确认添加
let
name
=
this
.
cateName
;
if
(
name
==
''
||
name
.
trim
()
==
''
)
name
=
"未命名"
;
console
.
log
(
name
)
if
(
name
.
length
<
1
||
name
.
length
>
6
)
{
this
.
$message
.
warning
(
"分类名字1到6个字"
);
this
.
cateName
=
""
;
return
;
}
console
.
log
(
'addCategory'
,)
this
.
$emit
(
"addCategory"
,
name
);
this
.
cateName
=
""
;
},
...
...
src/renderer/views/Home.vue
浏览文件 @
8452d20b
...
...
@@ -212,7 +212,6 @@ export default {
// 管理页隐藏
this
.
ipcRenderer
.
on
(
"manageVisible"
,
(
event
,
visible
)
=>
{
console
.
log
(
'visible'
,
visible
)
this
.
showManage
=
false
;
})
...
...
@@ -227,11 +226,9 @@ export default {
// console.log("获取到app列表", list);
this
.
appList
=
list
;
this
.
appList
.
forEach
((
item
,
index
)
=>
{
// console.log(item.icon)
if
(
item
.
icon
&&
(
item
.
icon
.
indexOf
(
'data:image/png'
)
==
-
1
&&
item
.
icon
.
indexOf
(
'data:image/svg'
)
==
-
1
)
&&
item
.
searchIcon
===
true
)
{
// console.log('getBase64', index)
this
.
ipcRenderer
.
send
(
"getBase64"
,
{
imagePath
:
item
.
icon
,
index
});
}
});
...
...
@@ -239,12 +236,12 @@ export default {
});
this
.
ipcRenderer
.
on
(
"category-list"
,
(
event
,
list
)
=>
{
console
.
log
(
"获取到分类列表 1"
,
list
);
//
console.log("获取到分类列表 1", list);
this
.
categoryList
=
list
;
});
this
.
ipcRenderer
.
on
(
"appsList_update"
,
(
event
,
list
)
=>
{
console
.
log
(
"刷新app列表"
,
list
);
//
console.log("刷新app列表", list);
this
.
appList
=
list
;
// this.getPinyin();
});
...
...
@@ -256,7 +253,7 @@ export default {
// 右键菜单点击-切换模式
this
.
ipcRenderer
.
on
(
"context-menu-command"
,
(
event
,
mode
)
=>
{
console
.
log
(
"context-menu-command"
,
mode
);
//
console.log("context-menu-command", mode);
let
modeObj
=
{
modeJianYue
:
"modeJianYue"
,
modeJiJian
:
"modeJiJian"
,
...
...
@@ -269,7 +266,7 @@ export default {
// 通知主进程
const
screen
=
this
.
$electron
.
remote
.
screen
;
const
{
width
,
height
}
=
screen
.
getPrimaryDisplay
().
workAreaSize
;
//获取到屏幕的宽度和高度
console
.
log
(
"宽高"
,
width
,
height
);
//
console.log("宽高", width, height);
// 设置程序位置
// this.ipcRenderer.send("setMainWindow0", { width, height });
...
...
@@ -282,7 +279,7 @@ export default {
},
1000
);
},
tapApp
(
item
)
{
console
.
log
(
item
);
//
console.log(item);
this
.
ipcRenderer
.
send
(
"openApp"
,
item
);
},
getFrontApp
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论