This commit is contained in:
Vanessa 2022-07-12 11:35:34 +08:00
parent fab8affaf2
commit 52ba6b6297

View file

@ -220,9 +220,8 @@ const boot = () => {
}) })
// 加载主界面 // 加载主界面
const loadURL = 'http://127.0.0.1:6806/stage/build/app/index.html?v=' + mainWindow.loadURL('http://127.0.0.1:6806/stage/build/app/index.html?v=' +
new Date().getTime() new Date().getTime())
mainWindow.loadURL(loadURL)
// 菜单 // 菜单
const productName = 'SiYuan' const productName = 'SiYuan'
@ -699,4 +698,4 @@ powerMonitor.on('resume', () => {
powerMonitor.on('shutdown', () => { powerMonitor.on('shutdown', () => {
writeLog("system shutdown"); writeLog("system shutdown");
fetch('http://127.0.0.1:6806/api/system/exit', {method: 'POST'}) fetch('http://127.0.0.1:6806/api/system/exit', {method: 'POST'})
}) })