| | |
| | | <h2>{{ title }}</h2> |
| | | <p>发布日期:{{ releaseTime }} 点击量:[ {{(hits+1)/2}} ]</p> |
| | | </div> |
| | | <hr> |
| | | <hr /> |
| | | <div v-html="content" class="ql-editor"></div> |
| | | </div> |
| | | </template> |
| | |
| | | }, |
| | | created(){ |
| | | // console.log(">>>>>>>>",this.$route.query.id); |
| | | this.getalone(); |
| | | this.getalone() |
| | | }, |
| | | methods:{ |
| | | getalone(){ |
| | | const data = this.$route.query.id; |
| | | const data = this.$route.query.id |
| | | getnew(data).then(res => { |
| | | console.log(res); |
| | | this.content = res.data.content; |
| | | this.hits = res.data.hits; |
| | | this.releaseTime = res.data.releaseTime; |
| | | this.title = res.data.title; |
| | | console.log(res) |
| | | this.content = res.data.content |
| | | this.hits = res.data.hits |
| | | this.releaseTime = res.data.releaseTime |
| | | this.title = res.data.title |
| | | }) |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style> |