iframeView.vue 502 B

123456789101112131415161718192021222324
  1. <template>
  2. <iframe :src="url" height="99.5%" width="100%" frameBorder="0" />
  3. </template>
  4. <script>
  5. import popu from '@/components/template/popu.vue';
  6. import { getFanruanToken } from '@/utils/auth'
  7. export default {
  8. components: {
  9. popu,
  10. },
  11. data() {
  12. return {
  13. fanruanToken: getFanruanToken()
  14. }
  15. },
  16. computed: {
  17. url() {
  18. return this.$route.meta.url && this.fanruanToken ? `${this.$route.meta.url}&ssoToken=${this.fanruanToken}` : ''
  19. }
  20. }
  21. }
  22. </script>
  23. <style></style>