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

<script setup>
	import {
		onMounted, ref
	} from 'vue';
	const userInfo = uni.getStorageSync('userInfo')

	// webview的地址
	const webViewUrl = ref('')

	onMounted(() => {
		webViewUrl.value =
			`https://feiniao-mini-h5-dev.sysuimars.cn/youwei/#/allGardenMap?userId=${userInfo.id}&token=${userInfo.token}`
		// webViewUrl.value = "http://localhost:8081/#/allGardenMap?userId=91754&token=034d7cf5-25fc-42d3-993e-460120419e5a"
		// webViewUrl.value =
		// 	`http://localhost:8081/#/gardenMap?userId=${userInfo.id}&token=${userInfo.token}&isFromScan=true`
	})
</script>