优化bug

This commit is contained in:
24kycj
2025-03-30 21:50:55 +08:00
parent 6f90c7dc69
commit 1e4407871e
4 changed files with 25 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ function createWindow() {
if (preFilePath) {
let soonData = fs.readFileSync(preFilePath)
let j = JSON.parse(soonData.toString());
let type = j.soonType ? j.soonType : 1
let type = j.soonType ? j.soonType : j.backBlackPic ? 2 : 1;
mainWindow.loadURL(`file://${__dirname}/design${type}.html?file=${preFilePath}&type=${type}`);
} else {
mainWindow.loadFile("index.html");