优化bug
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user