hangb 7 лет назад
Родитель
Сommit
5b60cde720
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      components/provider/ToggleStore.vue

+ 1 - 0
components/provider/ToggleStore.vue

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