87,910
社区成员
发帖
与我相关
我的任务
分享
<template>
<div class="article-box">
<div class="title">{{title}}</div>
<div v-html="htmls"></div>
<ToolBar />
</div>
</template>
mounted() {
this.docEntry = this.$route.query.docEntry;
this.classify = this.$route.query.classify;
let formdata = new FormData();
formdata.append("action", "ReceiveDetail");
formdata.append("docEntry", this.docEntry);
formdata.append("classify", this.classify);
formdata.append("userCode", localStorage.getItem("UserCode"));
this.$store
.dispatch("receiveDetail", formdata)
.then(res => {
this.htmls = res[0].U_ContentHtml;
this.title = res[0].U_Title;
})
.catch(err => this.$toast(err, "error"));
setTimeout(this.init, 1000);
// this.$nextTick(this.init)
},