integrated vuejs into theme (builded with webpack
This commit is contained in:
12
web/themes/custom/materiotheme/vuejs/store/index.js
Normal file
12
web/themes/custom/materiotheme/vuejs/store/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import User from './modules/user'
|
||||
|
||||
// https://github.com/vuejs/vuex/tree/dev/examples/shopping-cart
|
||||
|
||||
Vue.use(Vuex)
|
||||
export default new Vuex.Store({
|
||||
modules: {
|
||||
User
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user