Explorar o código

当从支付页面返回后,防止刷新其他页面

john %!s(int64=2) %!d(string=hai) anos
pai
achega
584e850b03
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/App.vue

+ 1 - 1
src/App.vue

@@ -110,7 +110,7 @@ export default {
           uni.setStorageSync('carList', JSON.parse(carList));
         }
         if (buildingId) {
-          uni.setStorageSync('buildingId', buildingId);
+          uni.setStorageSync('buildingId', JSON.parse(buildingId));
         }
         this.$store.commit('SET_IS_INIT', false);
         window.token = `${window.location.href}`.replace(/.*wx\/(.*)\/.*/g, '$1');