xuxueyang
2024-09-24 5525ed0398c496b43a09377d0c59d143e7ff3e98
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,