Created
November 2, 2018 03:05
-
-
Save tangoslee/361d186bae5f14bf73f5a7d3f11373ff to your computer and use it in GitHub Desktop.
vue - vuex.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tangos@tangos-Notebook:~/workspace/vue-todo-app$ git diff | |
diff --git a/package-lock.json b/package-lock.json | |
index 097da2c..950cfa7 100644 | |
--- a/package-lock.json | |
+++ b/package-lock.json | |
@@ -10736,6 +10736,11 @@ | |
"integrity": "sha512-x3LV3wdmmERhVCYy3quqA57NJW7F3i6faas++pJQWtknWT+n7k30F4TVdHvCLn48peTJFRvCpxs3UuFPqgeELg==", | |
"dev": true | |
}, | |
+ "vuex": { | |
+ "version": "3.0.1", | |
+ "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.0.1.tgz", | |
+ "integrity": "sha512-wLoqz0B7DSZtgbWL1ShIBBCjv22GV5U+vcBFox658g6V0s4wZV9P4YjCNyoHSyIBpj1f29JBoNQIqD82cR4O3w==" | |
+ }, | |
"watchpack": { | |
"version": "1.6.0", | |
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", | |
diff --git a/package.json b/package.json | |
index af3757a..e17da72 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -9,7 +9,8 @@ | |
}, | |
"dependencies": { | |
"vue": "^2.5.17", | |
- "vue-router": "^3.0.1" | |
+ "vue-router": "^3.0.1", | |
+ "vuex": "^3.0.1" | |
}, | |
"devDependencies": { | |
"@vue/cli-plugin-babel": "^3.1.0", | |
diff --git a/src/main.js b/src/main.js | |
index 33615f6..7fd7fb7 100644 | |
--- a/src/main.js | |
+++ b/src/main.js | |
@@ -1,10 +1,12 @@ | |
import Vue from 'vue'; | |
import App from './App.vue'; | |
import router from './router' | |
+import store from './store' | |
Vue.config.productionTip = false; | |
new Vue({ | |
router, | |
+ store, | |
render: h => h(App) | |
}).$mount('#app'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment