token auth
This commit is contained in:
parent
dac7edef21
commit
1755c670d6
9 changed files with 41 additions and 32 deletions
|
|
@ -32,12 +32,13 @@ const App =
|
|||
<Splash v-else />`
|
||||
}
|
||||
|
||||
window.mainApi.on("set-account", (account_) => {
|
||||
account.value = account_;
|
||||
window.mainApi.on("set-account", (value, reason) => {
|
||||
if (reason) alert(reason);
|
||||
account.value = value;
|
||||
});
|
||||
|
||||
export default App;
|
||||
export { account };
|
||||
|
||||
// Is called when window is about to close or reload
|
||||
window.onbeforeunload = () => console.log("beforeunload");
|
||||
window.onbeforeunload = () => console.log("beforeunload");
|
||||
|
|
|
|||
|
|
@ -21,4 +21,4 @@ const onDrop = async (e) => {
|
|||
});
|
||||
}
|
||||
|
||||
export default onDrop;
|
||||
export default onDrop;
|
||||
|
|
|
|||
Loading…
Reference in a new issue