From a294f7d3a24546fb9d2c40ca3992ecdfc93039d8 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 19 Oct 2022 11:51:02 +0200 Subject: Add prefetching using `nuxt-link` (#1) --- pages/models/_id/edit.vue | 2 +- pages/models/_id/index.vue | 10 +++++----- pages/signin.vue | 2 +- pages/signup.vue | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'pages') diff --git a/pages/models/_id/edit.vue b/pages/models/_id/edit.vue index 0d707b9..cfc5c0d 100644 --- a/pages/models/_id/edit.vue +++ b/pages/models/_id/edit.vue @@ -1,7 +1,7 @@ diff --git a/pages/signin.vue b/pages/signin.vue index 455ef68..9fe5047 100644 --- a/pages/signin.vue +++ b/pages/signin.vue @@ -5,7 +5,7 @@ div h2.mt-6.text-center.text-3xl.font-bold.tracking-tight.text-gray-900(class="dark:text-white") Sign in p.mt-2.text-center.text-sm.text-gray-600 Or - a.font-medium.text-indigo-600(class="hover:text-indigo-500 dark:text-gray-100 dark:hover:text-white" href="/signup") create a new account + nuxt-link.font-medium.text-indigo-600(class="hover:text-indigo-500 dark:text-gray-100 dark:hover:text-white" to="/signup") create a new account form.mt-8.space-y-6(method="POST") input(type="hidden" name="remember" value="true") .-space-y-px.rounded-md.shadow-sm diff --git a/pages/signup.vue b/pages/signup.vue index 09c5e27..6cfe8ed 100644 --- a/pages/signup.vue +++ b/pages/signup.vue @@ -5,7 +5,7 @@ div h2.mt-6.text-center.text-3xl.font-bold.tracking-tight.text-gray-900(class="dark:text-white") Create a new account p.mt-2.text-center.text-sm.text-gray-600 Or - a.font-medium.text-indigo-600(class="hover:text-indigo-500 dark:text-gray-100 dark:hover:text-white" href="/signin") signin + nuxt-link.font-medium.text-indigo-600(class="hover:text-indigo-500 dark:text-gray-100 dark:hover:text-white" to="/signin") signin form.mt-8.space-y-6(method="POST") input(type="hidden" name="remember" value="true") .-space-y-px.rounded-md.shadow-sm -- cgit v1.2.3-18-g5258