reverted back from vue typescript to javascript to fix bad performance...
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user