fix missing type

Signed-off-by: garionion <github@entr0py.de>
This commit is contained in:
garionion 2021-04-04 16:36:05 +02:00
parent d8ac261b13
commit cad579e759
Signed by: garionion
GPG key ID: 53352FA607FA681A

View file

@ -57,7 +57,7 @@ export default {
required: false,
},
},
async setup(props) {
async setup(props: { logout?: string }) {
const { logout } = toRefs(props);
const user = ref("");
const password = ref("");
@ -73,7 +73,7 @@ export default {
}
}
if (logout.value !== undefined) {
if (logout?.value !== undefined) {
console.log("LOGOUT");
await apiLogout();
}