Vanessa 2023-01-01 15:18:32 +08:00
parent 95bb18afe1
commit 00eaf9b4b4
21 changed files with 123 additions and 111 deletions

View file

@ -46,7 +46,7 @@ export const fetchPost = (url: string, data?: any, cb?: (response: IWebSocketDat
}
/// #if !BROWSER
if (url === "/api/system/exit" || url === "/api/system/setWorkspaceDir" || (
["/api/system/setUILayout", "/api/storage/setLocalStorage"].includes(url) && data.exit // 内核中断,点关闭处理
["/api/system/setUILayout"].includes(url) && data.exit // 内核中断,点关闭处理
)) {
ipcRenderer.send(Constants.SIYUAN_CONFIG_CLOSETRAY);
ipcRenderer.send(Constants.SIYUAN_QUIT);