threeLogin.vue 581 B

123456789101112131415161718192021222324
  1. <template>
  2. <a-divider>{{ $t('login.signInOther') }}</a-divider>
  3. <div class="login-oauth layout-center">
  4. <a-space align="start">
  5. <a @click="getLoginRenderUrl('gitee')"><GiteeIcon /></a>
  6. <a-button type="primary" shape="circle">
  7. <wechat-filled />
  8. </a-button>
  9. </a-space>
  10. </div>
  11. </template>
  12. <script setup name="threeLogin">
  13. import thirdApi from '@/api/auth/thirdApi'
  14. const getLoginRenderUrl = (platform) => {
  15. const param = {
  16. platform: platform
  17. }
  18. thirdApi.thirdRender(param).then((data) => {
  19. window.location.href = data.authorizeUrl
  20. })
  21. }
  22. </script>