fix(frontend): 🐛 fix login page setup script

This commit is contained in:
hay-kot 2021-09-14 12:26:28 -08:00
parent b542583303
commit 58f758b6c1

View File

@ -184,10 +184,13 @@
</v-container>
</template>
<script lang="ts" setup>
<script lang="ts">
import { defineComponent, ref, useContext } from "@nuxtjs/composition-api";
import { computed, reactive } from "@vue/reactivity";
export default defineComponent({
layout: "basic",
setup() {
const { $auth } = useContext();
const form = reactive({
@ -208,10 +211,13 @@ async function authenticate() {
await $auth.loginWith("local", { data: formData });
loggingIn.value = false;
}
</script>
<script lang="ts">
export default defineComponent({
layout: "basic",
return {
form,
loggingIn,
allowSignup,
authenticate,
};
},
});
</script>