|
|
@@ -69,6 +69,7 @@ export default {
|
|
|
methods: {
|
|
|
// 切换Store
|
|
|
toggleStore (type) {
|
|
|
+ if (type === this.storeType) return
|
|
|
this.$store.commit('provider/stores/SET_STORETYPE', type)
|
|
|
this.$store.dispatch('loadBanners', {type: type + '_banner_carousel'})
|
|
|
this.$store.dispatch('provider/findSimilarStoreList', { page: 1, count: 10, type: type === 'factory' ? 'ORIGINAL_FACTORY' : 'AGENCY-DISTRIBUTION' })
|