summaryrefslogtreecommitdiff
path: root/pages/models/_id/edit.vue
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-19 11:51:02 +0200
committerGitHub <noreply@github.com>2022-10-19 11:51:02 +0200
commita294f7d3a24546fb9d2c40ca3992ecdfc93039d8 (patch)
tree02a2181783b16029d91049f2bb2715320b0733a5 /pages/models/_id/edit.vue
parent585317bcf53db267366a64b8c896ebc52d527ee7 (diff)
Add prefetching using `nuxt-link` (#1)
Diffstat (limited to 'pages/models/_id/edit.vue')
-rw-r--r--pages/models/_id/edit.vue2
1 files changed, 1 insertions, 1 deletions
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 @@
<template lang="pug">
.mx-auto.w-90p.py-6#modelpage(class="sm:px-6 lg:px-8 md:max-w-7xl")
h1.text-3xl.font-bold(class="dark:text-white") Edit {{ model.name }}
- a.mt-3.mb-5.block.flex(:href="'/models/'+model.id" class="hover:underline dark:text-white")
+ nuxt-link.mt-3.mb-5.block.flex(:to="'/models/'+model.id" class="hover:underline dark:text-white")
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="mr-2 w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5L8.25 12l7.5-7.5" />
</svg>