src/page/login/index.vue
@@ -33,8 +33,8 @@ </div> </div> </div> <div class="z" v-show="activeName == 'code'"> <codeLogin></codeLogin> <div class="z" v-show="activeName == 'code'" :style="{height:height}"> <codeLogin v-on:height='setHeight'></codeLogin> </div> </div> </template> @@ -70,6 +70,7 @@ state: "", link: "", }, height:"500px" }; }, watch: { @@ -90,6 +91,11 @@ }, props: [], methods: { //获取高度 setHeight(height){ // console.log(height,8888); this.height = height; }, getTime() { setInterval(() => { this.time = dateFormat(new Date());