<template>
  <div class="hello"></div>
</template>

<script>
export default {
  name: 'login',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  created () {
    let wxcode = this.$store.state.wxcode
    // eslint-disable-next-line eqeqeq
    if (wxcode == null || wxcode == '') {
      window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx9d90c8092775b35a&redirect_uri=http%3A%2F%2Fm.gaoyuan.com.cn%2FGetCode&response_type=code&scope=snsapi_base&state=123456&connect_redirect=1#wechat_redirect'
    }
  },
  methods: {}
}
</script>
<style scoped>
</style>
