Vue Routerとは
webページのルーティングを実装してくれる Vue.js 公式 のプラグイン
導入
Vue CLI を使用しているので、以下コマンド
vue add router
質問がくる
質問1
Y
There are uncommitted changes in the current repository, it's recommended to commit or stash them first.
質問2
Y(historyモードを選択する)
https://qiita.com/kozzzz/items/af9ad63fa70d4724cc2a
Use history mode for router? (Requires proper server setup for index fallback
in production) (Y/n)
正常に起動した
✔ Successfully invoked generator for plugin: @vue/cli-plugin-router