mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
[test] update fixtures store to return a function
This commit is contained in:
parent
670b1254dd
commit
8a25da81fb
6
test/fixtures/basic/store/foo/bar.js
vendored
6
test/fixtures/basic/store/foo/bar.js
vendored
@ -1,5 +1,7 @@
|
||||
export const state = {
|
||||
baz: 'Vuex Nested Modules'
|
||||
export const state = () => {
|
||||
return {
|
||||
baz: 'Vuex Nested Modules'
|
||||
}
|
||||
}
|
||||
|
||||
export const getters = {
|
||||
|
2
test/fixtures/with-config/store/index.js
vendored
2
test/fixtures/with-config/store/index.js
vendored
@ -3,7 +3,7 @@ import Vuex from 'vuex'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
const store = new Vuex.Store({
|
||||
const store = () => new Vuex.Store({
|
||||
state: {
|
||||
counter: 0
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user