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}})
相关文章
相关标签/搜索