You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
514 B

<template>
<view class="pageBg">
<web-view :src="usecarStore.webLink" :webview-styles="webviewStyles" :update-title="false" @onPostMessage="handerMessage"></web-view>
</view>
</template>
<script setup>
let webviewStyles = {
progress: {
color: '#3877ff'
},
}
import carStore from '@/store/modules/car.js'
let usecarStore = carStore()
function handerMessage(res) {
console.log('监听到了')
let item = res.detail.data[0]
console.log(res)
console.log(item)
}
</script>
<style >
</style>