Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
electron-printer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhuzhequan
electron-printer
Commits
ac5c92d4
Commit
ac5c92d4
authored
Jul 10, 2026
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:定时任务调为1分钟测试
parent
549fd693
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
config/env.json
+2
-2
src/background.js
+1
-3
src/utils/download-queue.js
+1
-1
No files found.
config/env.json
View file @
ac5c92d4
{
{
"test"
:
{
"test"
:
{
"apiApiHost"
:
"http://172.16.19.
23
0:8060/api"
,
"apiApiHost"
:
"http://172.16.19.
10
0:8060/api"
,
"fileApiUrl"
:
"http://172.16.19.
23
0:8060/upload/factory"
,
"fileApiUrl"
:
"http://172.16.19.
10
0:8060/upload/factory"
,
"visionUrl"
:
"http://console.jomalls.com"
,
"visionUrl"
:
"http://console.jomalls.com"
,
"configPath"
:
"D:
\\
work
\\
electron-printer
\\
config
\\
env.json"
"configPath"
:
"D:
\\
work
\\
electron-printer
\\
config
\\
env.json"
},
},
...
...
src/background.js
View file @
ac5c92d4
...
@@ -387,9 +387,7 @@ async function createWindow() {
...
@@ -387,9 +387,7 @@ async function createWindow() {
win
.
webContents
.
on
(
"did-finish-load"
,
()
=>
{
win
.
webContents
.
on
(
"did-finish-load"
,
()
=>
{
const
{
width
,
height
}
=
win
.
getBounds
();
const
{
width
,
height
}
=
win
.
getBounds
();
win
.
webContents
.
send
(
"window-size"
,
{
width
,
height
});
win
.
webContents
.
send
(
"window-size"
,
{
width
,
height
});
console
.
log
(
99999
);
downloadQueue
.
startAutoDownloadTask
();
// downloadQueue.startAutoDownloadTask();
});
});
if
(
process
.
env
.
WEBPACK_DEV_SERVER_URL
)
{
if
(
process
.
env
.
WEBPACK_DEV_SERVER_URL
)
{
...
...
src/utils/download-queue.js
View file @
ac5c92d4
...
@@ -12,7 +12,7 @@ const taskState = {
...
@@ -12,7 +12,7 @@ const taskState = {
isDownloading
:
false
,
isDownloading
:
false
,
timer
:
null
,
timer
:
null
,
total
:
0
,
total
:
0
,
interval
:
5
*
60
*
1000
,
interval
:
1
*
60
*
1000
,
maxBatchConcurrency
:
3
,
maxBatchConcurrency
:
3
,
maxImageConcurrency
:
10
maxImageConcurrency
:
10
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment