Explorar el Código

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

htc hace 1 año
padre
commit
28472eca82
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pages/my/roomType.vue

+ 1 - 1
pages/my/roomType.vue

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