mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 20:32:12 +08:00
This commit is contained in:
parent
c03fba9ff7
commit
f0f8ab895f
@ -411,6 +411,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const exitSiYuan = () => {
|
const exitSiYuan = () => {
|
||||||
|
try {
|
||||||
fetch('/api/system/exit', {
|
fetch('/api/system/exit', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: JSON.stringify({force: false}),
|
body: JSON.stringify({force: false}),
|
||||||
@ -436,7 +437,12 @@
|
|||||||
} else {
|
} else {
|
||||||
exitApp()
|
exitApp()
|
||||||
}
|
}
|
||||||
|
}).catch(() =>{
|
||||||
|
exitApp()
|
||||||
})
|
})
|
||||||
|
} catch (e) {
|
||||||
|
exitApp()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputElement = document.getElementById('authCode')
|
const inputElement = document.getElementById('authCode')
|
||||||
|
Loading…
Reference in New Issue
Block a user