소스 검색

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

htc 1 년 전
부모
커밋
fa33e2cd87
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pages/house/index.vue

+ 1 - 1
pages/house/index.vue

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