mirror of https://github.com/nuxt/nuxt.git
Added getters to tests
This commit is contained in:
parent
0308f13dab
commit
ebd95280df
|
@ -1,3 +1,9 @@
|
|||
export const state = () => ({
|
||||
val: 1
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
getVal(state) {
|
||||
return 100
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
export const state = () => ({
|
||||
val: 2
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
getVal(state) {
|
||||
return 99
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue