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
0
Merge Requests
0
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
b1226def
Commit
b1226def
authored
Aug 10, 2024
by
朱哲铨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 修复
parent
84cfda63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/server/utils/index.js
+4
-3
No files found.
src/server/utils/index.js
View file @
b1226def
...
@@ -20,13 +20,14 @@ function zip(from, to) {
...
@@ -20,13 +20,14 @@ function zip(from, to) {
console
.
log
(
"success"
);
console
.
log
(
"success"
);
let
data
=
fs
.
readdirSync
(
dirName
);
let
data
=
fs
.
readdirSync
(
dirName
);
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
fileName
=
uuid
.
v4
()
+
".png"
;
let
el
=
data
[
i
];
let
el
=
data
[
i
];
let
file_path
=
path
.
join
(
dirName
,
el
);
let
file_path
=
path
.
join
(
dirName
,
el
);
console
.
log
(
file_path
,
to
);
console
.
log
(
file_path
,
to
);
fs
.
renameSync
(
file_path
,
path
.
join
(
to
,
el
));
fs
.
renameSync
(
file_path
,
path
.
join
(
to
,
fileName
));
arr
.
push
({
arr
.
push
({
fileName
:
el
,
fileName
:
fileName
,
productionFile
:
path
.
join
(
to
,
el
)
productionFile
:
path
.
join
(
to
,
fileName
)
});
});
}
}
...
...
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