🐛 fix query is not defined
This commit is contained in:
parent
ba4fb305ae
commit
2b10747e97
@ -17,7 +17,7 @@ export default {
|
||||
name: "Portfolios",
|
||||
components: {PortfolioList},
|
||||
fetch() {
|
||||
let {store, params, error} = this.$nuxt.context
|
||||
let {store, query, error} = this.$nuxt.context
|
||||
return Promise.all([
|
||||
store
|
||||
.dispatch('portfolio/fetchList', {page: query.page || 1})
|
||||
|
@ -14,7 +14,7 @@ export default {
|
||||
name: "products",
|
||||
components: {ProductList},
|
||||
fetch() {
|
||||
let {store, params, error} = this.$nuxt.context
|
||||
let {store, query, error} = this.$nuxt.context
|
||||
return Promise.all([
|
||||
store
|
||||
.dispatch('product/fetchList', {page: query.page || 1})
|
||||
|
Loading…
Reference in New Issue
Block a user