xuxueyang
2024-09-09 8478015e961b93963e0a269d92c281d84da44f63
store/index.js
@@ -34,6 +34,10 @@
         'shopnum': 0,
         'coupon': 0
      },
      cache: {
         coupon: {},
         goods:[],
      },
      defaultaddress: {}
   },
   mutations: {
@@ -120,6 +124,19 @@
         console.log('sign_clear', key)
         state.sign[key] = 0
      },
      cache_coupon_select: async function({
         commit,
         state
      }, dto) {
         state.cache['coupon'] = dto || {}
      },
      cache_goods_select: async function({
         commit,
         state
      }, goods) {
         state.cache['goods'] = goods || []
      },
      // lazy loading openid
      logout: async function({
         commit,