Top-level $fetch in <script setup> does not forward auth cookies to the SSR request, so requireAdmin rejected and the form hydrated empty. Client refetch then triggered hydration mismatches; in dev the description textarea stayed DOM-empty and the browser's native required validation blocked saves. Switch to useFetch (SSR-aware, forwards cookies). Mirror the admin/members/[id].vue pattern: extract populateEditForm, call it with the initial payload, watch for client-side updates. |
||
|---|---|---|
| .. | ||
| create.vue | ||
| index.vue | ||