Browse Source

禁止点击

hangb 7 years ago
parent
commit
5b60cde720
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/provider/ToggleStore.vue

+ 1 - 0
components/provider/ToggleStore.vue

@@ -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' })