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}
})