デスクトップアプリではURLの概念がないからでしょうか?原因はよくわかりませんが、上記の設定でうまく行きました。 Electronとvue-routerを併用していてなぜかうまく行かない場合は試してみてください。 関連記事 vue-router webpackでページごとにファイルを分割するvue-routerでシングルアプリケーションを作成していると、ページ数が増えるにしたがって作成されるjsファイルのファイルサイズもどんどん増えていきます。ページごとにファイルを分割し、そのページがア... vue-router 現在のパスによってスタイルを変更するvue-routerでシングルページアプリケーションを作成する際に、例えばヘッダやサイドバーのナビゲーションで現在表示しているページのリンクを無効にしたり色を変えたりしたい場合があります。現在表示して... vue-routerを導入してSP