store/index.js
@@ -38,6 +38,7 @@
      cache: {
         coupon: {},
         goods:[],
         cache_coupon_select_cancel:0
      },
      defaultaddress: {},
      addressDesc:'',
@@ -138,6 +139,14 @@
      }, dto) {
         state.cache['coupon'] = dto || {}
      },
      cache_coupon_select_cancel: async function({
         commit,
         state
      }, val) {
         state.cache['cache_coupon_select_cancel'] = val || 0
      },
      cache_goods_select: async function({
         commit,
         state