Administrator
2022-01-12 21c7375b7b38ebf2c8a2ca8fbf6fe9fb4f28250f
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());