index.vue 288 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 <template> <view> <web-view :src="url"></web-view> </view> </template> <script> export default { data() { return { url: '' } }, onLoad(e) { // 获取传递过来的链接 this.url = `${e.url}/#/?&username=${e.username}&user=${e.user}` } } </script>