vue h5支付寶支付

applyText.vue
<template>
<div v-html='apply'>
{{apply}}
</div>
</template>

<script>
export default {
name: 'applyText',
data() {
return {
apply: ''
}
},
mounted() {
let form = this.$route.query.html;
this.apply = form;
this.$nextTick(() => {
document.forms [0].submit()
})
}
}
</script>

<style scoped>
</style>


調用:
this.$router.replace({  path: '/applyText',  query: {html: res.data.data}})
相關文章
相關標籤/搜索