greenPro/pages/component/web-view-local/web-view-local.vue

23 lines
307 B
Vue
Raw Permalink Normal View History

2024-06-02 14:51:29 +00:00
<template>
<view>
<web-view src="/hybrid/html/local.html" @message="getMessage"></web-view>
</view>
</template>
<script>
export default {
methods: {
getMessage(e) {
uni.showModal({
content: JSON.stringify(e.detail),
showCancel: false
})
}
}
}
</script>
<style>
</style>