🐛 The authentication page after startup Alt+M fails https://github.com/siyuan-note/siyuan/issues/9575

This commit is contained in:
Daniel 2023-11-09 11:16:44 +08:00
parent 5b2b5204b7
commit de7556c3dd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 2 additions and 1 deletions

View file

@ -537,7 +537,7 @@
await ipcRenderer.invoke("siyuan-init", {
languages: {{.trayMenuLangs}},
workspaceDir: '/Users/Vanessa/Work/SiYuan',
workspaceDir: '{{.workspaceDir}}',
port: location.port
});
ipcRenderer.send("siyuan-hotkey", {

View file

@ -351,6 +351,7 @@ func serveCheckAuth(c *gin.Context) {
"workspacePath": util.WorkspaceDir,
"keymapGeneralToggleWin": keymapHideWindow,
"trayMenuLangs": util.TrayMenuLangs[util.Lang],
"workspaceDir": util.WorkspaceDir,
}
buf := &bytes.Buffer{}
if err = tpl.Execute(buf, model); nil != err {