<template>
	<web-view :src="src"></web-view>
</template>

<script>
import { mapGetters } from 'vuex'
import { getBasicUser } from '@/utils/auth'

export default {
	data() {
		return {
			src: '',
			options: {},
			roleName: ''
		}
	},
	computed: {
		...mapGetters({ userInfo: 'getBasicUser' })
	},
	onLoad(options) {
		this.options = options
	},
	/**
		 * 用户点击右上角分享
		 */
	onShareAppMessage: function(options) {
		let shareObj = {}
		shareObj = {
			title: this.userInfo.nick_name + this.userInfo.role_name,
			path: `/pages/design/designCompany/indexNew?${params}`
		}
		return shareObj
	}
}
</script>

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