Change store creation
This commit is contained in:
parent
7f8739500e
commit
5b9c28b112
|
|
@ -1,11 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html {{ HTML_ATTRS }}>
|
|
||||||
<head>
|
|
||||||
<style>h1{color: red;}</style>
|
|
||||||
{{ HEAD }}
|
|
||||||
</head>
|
|
||||||
<body {{ BODY_ATTRS }}>
|
|
||||||
<h1>Hello world</h1>
|
|
||||||
{{ APP }}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
|
|
||||||
const createStore = () => {
|
export default new Vuex.Store({
|
||||||
return new Vuex.Store({
|
|
||||||
modules: {},
|
modules: {},
|
||||||
|
|
||||||
state: {
|
state: {
|
||||||
|
|
@ -15,6 +14,3 @@ const createStore = () => {
|
||||||
|
|
||||||
mutations: {}
|
mutations: {}
|
||||||
})
|
})
|
||||||
}
|
|
||||||
|
|
||||||
export default createStore
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue