Fix bad auto-formatting on Nuxt 3 guide (#18682)

This commit is contained in:
Kevin Lewis
2023-05-23 16:02:47 +02:00
committed by GitHub
parent eb82110b7e
commit 6deb154a70

View File

@@ -58,7 +58,10 @@ Ensure your Project URL is correct when initializing the Directus JavaScript SDK
Inside of your `app.vue` entry file, add the following to the bottom to test that your plugin works:
```js
<script setup>const {$directus} = useNuxtApp() console.log($directus)</script>
<script setup>
const {$directus} = useNuxtApp()
console.log($directus)
</script>
```
Refresh your browser, and check the console. You should see the Directus instance logged, which means you have access to