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:
@@ -2,7 +2,8 @@
|
||||
import { computed } from 'vue';
|
||||
import GuestLayout from '@/Layouts/GuestLayout.vue';
|
||||
import PrimaryButton from '@/Components/PrimaryButton.vue';
|
||||
import { Head, Link, useForm } from '@inertiajs/vue3';
|
||||
import { RouterLink, useRoute } from 'vue-router';
|
||||
import { reactive, computed } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
status: {
|
||||
@@ -10,7 +11,7 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
const form = useForm({});
|
||||
const form = reactive({});
|
||||
|
||||
const submit = () => {
|
||||
form.post(route('verification.send'));
|
||||
@@ -23,7 +24,7 @@ const verificationLinkSent = computed(
|
||||
|
||||
<template>
|
||||
<GuestLayout>
|
||||
<Head title="Email Verification" />
|
||||
<div title="Email Verification"></div>
|
||||
|
||||
<div class="mb-4 text-sm text-gray-600">
|
||||
Thanks for signing up! Before getting started, could you verify your
|
||||
@@ -48,12 +49,12 @@ const verificationLinkSent = computed(
|
||||
Resend Verification Email
|
||||
</PrimaryButton>
|
||||
|
||||
<Link
|
||||
:href="route('logout')"
|
||||
<RouterLink
|
||||
:to="{ name: 'logout' }"
|
||||
method="post"
|
||||
as="button"
|
||||
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"
|
||||
>Log Out</Link
|
||||
>Log Out</RouterLink
|
||||
>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user