fixed showroom duplicate
This commit is contained in:
@ -18,7 +18,7 @@ import Showroom from 'vuejs/components/Content/Showroom'
|
||||
import { mapState, mapActions } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "Showrooms",
|
||||
name: 'Showrooms',
|
||||
// data() {
|
||||
// return {
|
||||
// items:[],
|
||||
|
@ -18,10 +18,11 @@ export default {
|
||||
// mutations
|
||||
mutations: {
|
||||
setItems (state, items) {
|
||||
state.items = state.items.concat(items)
|
||||
state.items = items
|
||||
items.forEach((item, i) => {
|
||||
state.showrooms_by_tid[item.tid] = item
|
||||
})
|
||||
// console.log('Showroom setitems', state.showrooms_by_tid)
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user