Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit 160c3dd

Browse files
committed
feat: add routers/README and update routerd-pages/README
1 parent 141d1c0 commit 160c3dd

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/routed-pages/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# ROUTED_PAGES
22

3-
This directory contains your Application Views and Routes.
4-
The framework reads all the `*.vue` files inside this directory and creates the router of your application.
3+
nuxt.config.ts の `router.extendRoutes` でカスタムルーティングしたいが、 pages にファイルを配置すると `.vue` ファイルの名前でアクセスできてしまう。
54

6-
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing).
5+
それを防ぐのが、 `routed-pages``routers` です。
76

8-
router の extendRoutes でルーティングをカスタムすると `*.vue` ファイルは直接見られたくないけど、
9-
ルーティングのときには表示したいページがある。
10-
11-
それを routed-pages に置くことで、 pages のようにファイルを置くと見られるということがなくなる。
7+
routers でカスタムルーティングを定義し、 routed-pages のファイルを指定するのが pages を使わない場合のルールです。

src/routers/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ROUTERS
2+
3+
nuxt.config.ts の `router.extendRoutes` でカスタムルーティングしたいが、 pages にファイルを配置すると `.vue` ファイルの名前でアクセスできてしまう。
4+
5+
それを防ぐのが、 `routed-pages``routers` です。
6+
7+
routers でカスタムルーティングを定義し、 routed-pages のファイルを指定するのが pages を使わない場合のルールです。

0 commit comments

Comments
 (0)