Merge branch 'dev'

This commit is contained in:
saparatayev 2022-03-24 15:29:33 +05:00
commit ef612f39a9
2 changed files with 6 additions and 6 deletions

View File

@ -14,5 +14,6 @@ class VerifyCsrfToken extends Middleware
protected $except = [
'/exports/import',
'/imports/import',
'/logout',
];
}

View File

@ -28,7 +28,9 @@
<a-button v-if="$page.props.user" class="ml-6" @click="logout">{{
trans("Logout")
}}</a-button>
<form action="/logout" method="post" id="logout-form">
<input type="hidden" name="_token" :value="csrf">
</form>
<!-- <a-button v-else @click="login">Içeri gir</a-button> -->
</div>
<main style="height: calc(100vh - 3.5rem)"><slot></slot></main>
@ -44,10 +46,6 @@ export default {
}
},
data() {
return {};
},
computed: {
links() {
return [
@ -106,7 +104,8 @@ export default {
},
logout() {
this.$inertia.post(this.route("logout"));
event.preventDefault()
document.getElementById('logout-form').submit()
},
},
};