diff --git a/pages/component/web-view-local/web-view-local.uvue b/pages/component/web-view-local/web-view-local.uvue index d7468acf52092b364a4b4e16a59b0bf646ab2d65..4d1e8c30f140f47d3c5d5e41132ee5453b33feb3 100644 --- a/pages/component/web-view-local/web-view-local.uvue +++ b/pages/component/web-view-local/web-view-local.uvue @@ -15,8 +15,12 @@ methods: { message(event : UniWebViewMessageEvent) { console.log(JSON.stringify(event)); + let contentStr = JSON.stringify(event.detail); + + contentStr = JSON.stringify(event.detail.data[0]); + uni.showModal({ - content: JSON.stringify(event.detail), + content: contentStr, showCancel: false }); },