]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commit
refactor: define routes in `createRouter()` for better autocompletion
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 7 Oct 2021 17:51:46 +0000 (01:51 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 7 Oct 2021 17:51:46 +0000 (01:51 +0800)
commitfb7945c7d7dee10703b79c18e2c06907b40eb559
tree68b614d061c20ec84f16c587ab0474467164282e
parent9312482b4e173e84d5df038a6815d44eae0764b9
refactor: define routes in `createRouter()` for better autocompletion

After this commit, the `route` & `typescript-route` templates have more
duplication than before.
I'll investigate later to see if the code templates can be further
simplified.
template/code/router/src/router/index.js
template/code/typescript-router/src/router/index.ts