陶杰
2024-11-12 767ca1416d96ff1d2f8d346c0a1bdd36bc6557f5
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
      },