From f1988b6348aef6ddf2451b52c871af60a1462d1e Mon Sep 17 00:00:00 2001 From: thilo Date: Sat, 21 Mar 2020 15:16:42 +0100 Subject: [PATCH] initial commit --- package.json | 4 +++- src/App.vue | 32 ++++++++++++++++++-------------- src/main.js | 4 +++- yarn.lock | 7 ++++++- 4 files changed, 30 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 3ddcca1..79bbbfe 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,13 @@ }, "dependencies": { "core-js": "^3.6.4", - "vue": "^2.6.11" + "vue": "^2.6.11", + "vue-router": "^3.1.5" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.2.0", "@vue/cli-plugin-eslint": "~4.2.0", + "@vue/cli-plugin-router": "~4.2.0", "@vue/cli-service": "~4.2.0", "babel-eslint": "^10.0.3", "eslint": "^6.7.2", diff --git a/src/App.vue b/src/App.vue index 55df315..6c26aa6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,21 +1,13 @@ - - diff --git a/src/main.js b/src/main.js index 63eb05f..659607d 100644 --- a/src/main.js +++ b/src/main.js @@ -1,8 +1,10 @@ import Vue from 'vue' import App from './App.vue' +import router from './router' Vue.config.productionTip = false new Vue({ - render: h => h(App), + router, + render: h => h(App) }).$mount('#app') diff --git a/yarn.lock b/yarn.lock index 32dbd66..d05c566 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1021,7 +1021,7 @@ webpack "^4.0.0" yorkie "^2.0.0" -"@vue/cli-plugin-router@^4.2.3": +"@vue/cli-plugin-router@^4.2.3", "@vue/cli-plugin-router@~4.2.0": version "4.2.3" resolved "https://registry.npm.taobao.org/@vue/cli-plugin-router/download/@vue/cli-plugin-router-4.2.3.tgz#c64594e7e7e20ba76c71262f283b6199f5afd463" integrity sha1-xkWU5+fiC6dscSYvKDthmfWv1GM= @@ -7881,6 +7881,11 @@ vue-loader@^15.8.3: vue-hot-reload-api "^2.3.0" vue-style-loader "^4.1.0" +vue-router@^3.1.5: + version "3.1.6" + resolved "https://registry.npm.taobao.org/vue-router/download/vue-router-3.1.6.tgz?cache=0&sync_timestamp=1584203224109&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.1.6.tgz#45f5a3a3843e31702c061dd829393554e4328f89" + integrity sha1-RfWjo4Q+MXAsBh3YKTk1VOQyj4k= + vue-style-loader@^4.1.0, vue-style-loader@^4.1.2: version "4.1.2" resolved "https://registry.npm.taobao.org/vue-style-loader/download/vue-style-loader-4.1.2.tgz#dedf349806f25ceb4e64f3ad7c0a44fba735fcf8"