mirror of
https://github.com/directus/directus.git
synced 2026-01-23 10:18:03 -05:00
Fix bad auto-formatting on Nuxt 3 guide (#18682)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user