web-view嵌套h5的字段不能和路由的一样
<template>
<div v-if="webViewUrl">
<web-view :src="webViewUrl"></web-view>
</div>
</template>
<script>
export default {
data() {
return {
webViewUrl: ''
};
},
async onLoad(params) {
if (params.url) {
let url = params.url
if (url.includes('xmplus')) {
const surveyParams = await this.$util.encodeCEMParams()
this.webViewUrl = url + surveyParams
} else {
this.webViewUrl = url;
}
}
console.log(this.webViewUrl, '===');
},
};
</script>
<style lang="scss" scoped>
</style>
有时候会导致h5返回按钮会返回几次