Commit fd225a99 authored by xhx's avatar xhx

fix: 资讯详情

parent fae16724
<template>
<div>
<p class=" text-2xl font-bold mb-5 ">{{ title }}</p>
<p class=" text-gray-400">新增时间:{{ time | format }} <span class=" ml-2">作者:{{ name }}</span></p>
<p class=" text-gray-400">发布时间:{{ time | format }} <span class=" ml-2">作者:{{ name }}</span></p>
<div class="text-left p-5" v-html="content"></div>
<!-- <p class="text-left p-5">{{content}}</p> -->
</div>
......@@ -43,7 +43,7 @@ export default Vue.extend({
// })
const _str = this.$route.query.msg as string
const msg = JSON.parse(_str)
this.time = msg.created_at
this.time = msg.update_at
this.name = msg.writer
this.content = msg.content
this.title = msg.title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment