xuxueyang
2024-10-20 f4fd489475500b0d41dde019963307d217321d50
store/index.js
@@ -32,13 +32,15 @@
         'delivery': 0,
         'order': 0,
         'shopnum': 0,
         'coupon': 0
         'coupon': 0,
         'cache_topay':0,
      },
      cache: {
         coupon: {},
         goods:[],
      },
      defaultaddress: {}
      defaultaddress: {},
      addressDesc:'',
   },
   mutations: {
@@ -68,6 +70,12 @@
      setDefaultAddress(state, defaultaddress) {
         state.defaultaddress = defaultaddress
      },
      setAddressDesc(state, addressDesc) {
         console.log('setAddressDesc',addressDesc)
         state.addressDesc = addressDesc
         storage.setItem("defaultaddress",addressDesc || "")
      },
      setTestTrue(state) {
         state.testvuex = true
      },