Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds vuex to the boilerplate app and a simple app.store.js to get the…
… user going
- Loading branch information
1 parent
14d242b
commit 6c17ba3
Showing
6 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const BASE_API = '/api/' | ||
export const BASE_API = '/api/' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Vue from 'vue' | ||
import Vuex from 'vuex' | ||
|
||
Vue.use(Vuex) | ||
|
||
export default new Vuex.Store({ | ||
state: { | ||
|
||
}, | ||
mutations: { | ||
|
||
}, | ||
getters: { | ||
|
||
}, | ||
actions: { | ||
|
||
} | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import Vue from 'vue' | ||
import Vuex from 'vuex' | ||
import VueRouter from 'vue-router' | ||
import {router} from './app.route' | ||
import router from './app.route' | ||
import store from './app.store' | ||
import AppCmp from './app' | ||
|
||
Vue.use(Vuex) | ||
Vue.use(VueRouter) | ||
|
||
new Vue({ | ||
el: '#app', | ||
router: router, | ||
store, | ||
router, | ||
render: h => h(AppCmp), | ||
}) | ||
}).$mount('#app') |
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