auth.vue 746 Bytes
<template>
  <div class=""></div>
</template>

<script setup>
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'

const $route = useRoute();

onMounted(() => {
  // php需要先跳转链接获取openid
  let url = encodeURIComponent(location.origin + location.pathname + $route.query.href); // 未授权的地址
  // TEMP:临时使用测试 OPENID, 正式版需要删除
  let text = 'api-test-openid'
  location.href = `/srv/?f=voice&a=openid_${$route.query.userType}&res=${url}&input_openid=${text}`
})
</script>

<script>
import mixin from 'common/mixin';

export default {
  mixins: [mixin.init],
  data() {
    return {

    }
  },
  mounted() {

  },
  methods: {

  }
}
</script>

<style lang="less" scoped>
</style>