iframeView.vue 521 B

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