Browse Source

处理询价页面的优化

Administrator 6 years ago
parent
commit
9ee46669ca
3 changed files with 3 additions and 12 deletions
  1. 3 1
      components/provider/Suppliers.vue
  2. 0 10
      store/provider.js
  3. 0 1
      store/provider/storeCms.js

+ 3 - 1
components/provider/Suppliers.vue

@@ -71,7 +71,9 @@ export default {
   },
   computed: {
     storeType () {
-      this.pageParams.page = 1
+      if (this.pageParams) {
+        this.pageParams.page = 1
+      }
       return this.$store.state.provider.stores.storeType.data
     },
     stores () {

+ 0 - 10
store/provider.js

@@ -78,16 +78,6 @@ export const actions = {
       }
     }).then(response => {
       commit('storeCms/GET_NEW_STORES_SUCCESS', response.data)
-      commit('storeCms/REQUEST_STORE_COUNT')
-      return axios.get('/api/store-service/stores/type/count', {
-        params: {
-          types: params.types
-        }
-      }).then(response => {
-        commit('storeCms/GET_STORE_COUNT_SUCCESS', response.data && response.data.success ? response.data.data : 0)
-      }, err => {
-        commit('storeCms/GET_STORE_COUNT_FAILURE', err)
-      })
     }, err => {
       commit('storeCms/GET_NEW_STORES_FAILURE', err)
     })

+ 0 - 1
store/provider/storeCms.js

@@ -7,7 +7,6 @@ export const state = () => ({
     fetching: false,
     data: []
   },
-
   recommendStore: {
     fetching: false,
     data: []