Fix login not working due to missing js variable..
This commit is contained in:
parent
ecfbf7e2d2
commit
9ab5a10816
@ -7,7 +7,7 @@
|
|||||||
<div
|
<div
|
||||||
class="bg-gray-800 border-teal-500 p-8 border-t-8 bg-white mb-6 rounded-lg shadow-lg"
|
class="bg-gray-800 border-teal-500 p-8 border-t-8 bg-white mb-6 rounded-lg shadow-lg"
|
||||||
>
|
>
|
||||||
<form @submit="userLogin">
|
<form @submit.prevent="userLogin">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<label
|
<label
|
||||||
for="username"
|
for="username"
|
||||||
@ -76,8 +76,7 @@ export default {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
userLogin(e) {
|
userLogin() {
|
||||||
e.preventDefault()
|
|
||||||
this.$auth
|
this.$auth
|
||||||
.loginWith('local', {
|
.loginWith('local', {
|
||||||
data: this.form,
|
data: this.form,
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
export default function ({ $vuetify }) {
|
|
||||||
const theme = localStorage.getItem('theme') ?? 'light'
|
|
||||||
$vuetify.theme.dark = theme === 'dark'
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user