1234567891011121314151617181920 |
- <!-- /pages/webview/webview.vue -->
- <template>
- <web-view :src="src"></web-view>
- </template>
-
- <script>
- export default {
- data() {
- return {
- src: ''
- };
- },
- onLoad(option) {
- // 获取传递过来的url参数
- let optionurl = option.url;
- console.log("optionurl=========="+optionurl)
- this.src = decodeURIComponent(option.url);
- }
- };
- </script>
|