webview.vue 620 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <web-view :src="src"></web-view>
  3. </template>
  4. <script>
  5. import { mapGetters } from 'vuex'
  6. // import { getSelfInfo } from '@/utils/auth'
  7. export default {
  8. data() {
  9. return {
  10. src: '',
  11. roleName: ''
  12. }
  13. },
  14. computed: {
  15. // ...mapGetters({ userInfo: 'getSelfInfo' })
  16. },
  17. onLoad(option) {
  18. },
  19. /**
  20. * 用户点击右上角分享
  21. */
  22. onShareAppMessage: function(option) {
  23. let shareObj = {}
  24. shareObj = {
  25. title: this.userInfo.nick_name + this.userInfo.role_name,
  26. path: `/pages/design/designCompany/indexNew?${params}`
  27. }
  28. return shareObj
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. </style>