parent
46491f38a0
commit
b9410dc5f1
@ -57,11 +57,6 @@
|
|||||||
// }
|
// }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button
|
|
||||||
on:click={() => {
|
|
||||||
$store.isLoggedIn = true;
|
|
||||||
}}>login</button>
|
|
||||||
<!-- -->
|
|
||||||
<Route>
|
<Route>
|
||||||
{#if $router.path === '/forgot_password'}
|
{#if $router.path === '/forgot_password'}
|
||||||
<Route path="/forgot_password">
|
<Route path="/forgot_password">
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
OpenAPI.TOKEN = value.access_token;
|
OpenAPI.TOKEN = value.access_token;
|
||||||
const jwtinfo = JSON.parse(atob(OpenAPI.TOKEN.split(".")[1]));
|
const jwtinfo = JSON.parse(atob(OpenAPI.TOKEN.split(".")[1]));
|
||||||
store.login(value.access_token, jwtinfo);
|
store.login(value.access_token, jwtinfo);
|
||||||
location.replace("/");
|
|
||||||
Toastify({
|
Toastify({
|
||||||
text: $_("welcome_wavinghand"),
|
text: $_("welcome_wavinghand"),
|
||||||
duration: 500,
|
duration: 500,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user