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'
|
||||
|
||||
const createStore = () => {
|
||||
return new Vuex.Store({
|
||||
export default new Vuex.Store({
|
||||
modules: {},
|
||||
|
||||
state: {
|
||||
|
|
@ -15,6 +14,3 @@ const createStore = () => {
|
|||
|
||||
mutations: {}
|
||||
})
|
||||
}
|
||||
|
||||
export default createStore
|
||||
|
|
|
|||
Loading…
Reference in New Issue