mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-31 14:34:42 -04:00
fix(frontend): 🐛 fix login page setup script
This commit is contained in:
parent
b542583303
commit
58f758b6c1
@ -184,10 +184,13 @@
|
|||||||
</v-container>
|
</v-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts">
|
||||||
import { defineComponent, ref, useContext } from "@nuxtjs/composition-api";
|
import { defineComponent, ref, useContext } from "@nuxtjs/composition-api";
|
||||||
import { computed, reactive } from "@vue/reactivity";
|
import { computed, reactive } from "@vue/reactivity";
|
||||||
|
export default defineComponent({
|
||||||
|
layout: "basic",
|
||||||
|
|
||||||
|
setup() {
|
||||||
const { $auth } = useContext();
|
const { $auth } = useContext();
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
@ -208,10 +211,13 @@ async function authenticate() {
|
|||||||
await $auth.loginWith("local", { data: formData });
|
await $auth.loginWith("local", { data: formData });
|
||||||
loggingIn.value = false;
|
loggingIn.value = false;
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
|
|
||||||
<script lang="ts">
|
return {
|
||||||
export default defineComponent({
|
form,
|
||||||
layout: "basic",
|
loggingIn,
|
||||||
|
allowSignup,
|
||||||
|
authenticate,
|
||||||
|
};
|
||||||
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user