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
56dcbfaa
Commit
56dcbfaa
authored
Jul 17, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加清空原图片素材方法
parent
9f39d741
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
51 deletions
+80
-51
src/server/utils/index.js
+0
-2
src/views/design/head/index.vue
+77
-49
src/views/design/main/index.vue
+3
-0
No files found.
src/server/utils/index.js
View file @
56dcbfaa
...
...
@@ -51,8 +51,6 @@ export const downloadImage = (list) => {
// console.log("Formatted Folder Name:", folderName); // 检查替换结果
let
dirPath
=
path
.
join
(
process
.
cwd
(),
`./print/Input/`
);
console
.
log
(
64
,
dirPath
);
if
(
!
fs
.
existsSync
(
dirPath
))
{
fs
.
mkdirSync
(
dirPath
);
}
...
...
src/views/design/head/index.vue
View file @
56dcbfaa
This diff is collapsed.
Click to expand it.
src/views/design/main/index.vue
View file @
56dcbfaa
...
...
@@ -820,6 +820,8 @@ export default {
this
.
checkList
.
map
(
async
(
el
)
=>
{
try
{
const
outputDir
=
path
.
dirname
(
el
.
productionFile
);
console
.
log
(
outputDir
);
const
outputFileName
=
`
${
uuid
.
v4
()}
.png`
;
const
outputPath
=
path
.
join
(
outputDir
,
outputFileName
);
const
params
=
{
...
...
@@ -839,6 +841,7 @@ export default {
})
);
console
.
log
(
"processQueue"
,
processQueue
);
// 等待所有异步操作完成
await
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
100
));
const
newMap
=
new
Map
(
processQueue
.
map
((
el
)
=>
[
el
.
designId
,
el
]));
...
...
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