mirror of
https://github.com/henry4682/finance_app.git
synced 2026-07-16 00:10:00 +00:00
feat: 前端分離+功能api化
1. 新增資產管理CRUD、googleOAuth登入 2. 更改原記帳controller
This commit is contained in:
@@ -4,9 +4,10 @@ import InputError from '@/Components/InputError.vue';
|
||||
import InputLabel from '@/Components/InputLabel.vue';
|
||||
import PrimaryButton from '@/Components/PrimaryButton.vue';
|
||||
import TextInput from '@/Components/TextInput.vue';
|
||||
import { Head, Link, useForm } from '@inertiajs/vue3';
|
||||
import { RouterLink, useRoute } from 'vue-router';
|
||||
import { reactive } from 'vue';
|
||||
|
||||
const form = useForm({
|
||||
const form = reactive({
|
||||
name: '',
|
||||
email: '',
|
||||
password: '',
|
||||
@@ -22,7 +23,7 @@ const submit = () => {
|
||||
|
||||
<template>
|
||||
<GuestLayout>
|
||||
<Head title="Register" />
|
||||
<div title="Register"></div>
|
||||
|
||||
<form @submit.prevent="submit">
|
||||
<div>
|
||||
@@ -93,12 +94,12 @@ const submit = () => {
|
||||
</div>
|
||||
|
||||
<div class="mt-4 flex items-center justify-end">
|
||||
<Link
|
||||
:href="route('login')"
|
||||
<RouterLink
|
||||
:to="{ name: 'login' }"
|
||||
class="rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
|
||||
>
|
||||
Already registered?
|
||||
</Link>
|
||||
</RouterLink>
|
||||
|
||||
<PrimaryButton
|
||||
class="ms-4"
|
||||
|
||||
Reference in New Issue
Block a user