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}
})
原文地址:https://www.cnblogs.com/lovemiao/p/9946447.html