Skip to content

Commit

Permalink
fix: change file routing in the Nuxt guide (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonzcxv authored Jun 23, 2024
1 parent 2c291ac commit 1b79e12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ Create a root for this page inside the `app` layer:
β”œβ”€β”€ src
β”‚ β”œβ”€β”€ app
β”‚ β”‚ β”œβ”€β”€ routes
β”‚ β”‚ β”‚ β”œβ”€β”€ home
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ index.vue
β”‚ β”‚ β”‚ β”œβ”€β”€ index.vue
β”‚ β”œβ”€β”€ pages
β”‚ β”‚ β”œβ”€β”€ home
β”‚ β”‚ β”‚ β”œβ”€β”€ ui
Expand All @@ -84,7 +83,7 @@ Create a root for this page inside the `app` layer:

Add your page component inside the `index.vue` file:

```html title="pages/home/ui/home-page.vue"
```html title="src/app/routes/index.vue"
<script setup>
import { HomePage } from '@/pages/home';
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ export { default as HomePage } from './ui/home-page';
β”œβ”€β”€ src
β”‚ β”œβ”€β”€ app
β”‚ β”‚ β”œβ”€β”€ routes
β”‚ β”‚ β”‚ β”œβ”€β”€ home
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ index.vue
β”‚ β”‚ β”‚ β”œβ”€β”€ index.vue
β”‚ β”œβ”€β”€ pages
β”‚ β”‚ β”œβ”€β”€ home
β”‚ β”‚ β”‚ β”œβ”€β”€ ui
Expand All @@ -83,7 +82,7 @@ export { default as HomePage } from './ui/home-page';

Π”ΠΎΠ±Π°Π²ΡŒΡ‚Π΅ Π²Π½ΡƒΡ‚Ρ€ΡŒ `index.vue` Ρ„Π°ΠΉΠ»Π° ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ вашСй страницы:

```html title="pages/home/ui/home-page.vue"
```html title="src/app/routes/index.vue"
<script setup>
import { HomePage } from '@/pages/home';
</script>
Expand Down

0 comments on commit 1b79e12

Please sign in to comment.