Sfoglia il codice sorgente

homestayId修改为本地存储id,state中的id刷新页面就重置了

htc 1 anno fa
parent
commit
fa33e2cd87
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pages/house/index.vue

+ 1 - 1
pages/house/index.vue

@@ -126,7 +126,7 @@
 	export default {
 	export default {
 		data() {
 		data() {
 			return {
 			return {
-				homestayId: this.$store.state.moduleHouse.homestayId,
+				homestayId: uni.getStorageSync('homestayId')||0,
 				areaShow: false,
 				areaShow: false,
 				passengerDefault: [0],
 				passengerDefault: [0],
 				info: {},
 				info: {},