<template>
  <view class="auth-wrap"  v-if="show">
    <slot name="content"></slot>
  </view>
</template>

<script>
import { authLogin } from '@/util';

export default {
  name: 'auth-wrap',
  props: {},
  data() {
    return { show: false };
  },
  created() {
  },
  mounted() {
    authLogin(() => {
      this.show = true;
    });
  },
  methods: {
    reloadPage() {
      authLogin(() => {
        this.show = true;
      });
    }
  },
};
</script>
<style lang="scss" src="./index.scss" />
