reverted back from vue typescript to javascript to fix bad performance...

This commit is contained in:
Sockenklaus
2023-07-10 23:05:49 +02:00
parent 7f33499459
commit 3534b9fb8d
16 changed files with 593 additions and 346 deletions

View File

@@ -45,10 +45,8 @@
</n-form>
</template>
<script setup lang="ts">
import type { FormInst } from 'naive-ui'
<script setup>
import { ref } from 'vue'
import { NMessageProvider, NInput, NForm, NFormItem } from 'naive-ui'
import { router } from '@inertiajs/vue3'
import LoginLayout from '@/layouts/LoginLayout.vue'
import FlashMessages from '@/components/FlashMessages.vue'
@@ -61,7 +59,7 @@
password: '',
})
const formRef = ref<FormInst | null>(null)
const formRef = ref(null)
const rules = ref({
username: {
@@ -77,7 +75,7 @@
})
function onClickLogin(){
formRef.value?.validate((errors: any) => {
formRef.value?.validate((errors) => {
if(!errors) router.post('login', form.value)
})
}