|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
<div class="notice_detail_box">
|
|
|
- <h2 class="title">{{ detail?['title'] }}</h2>
|
|
|
+ <h2 class="title">{{ detail['title'] }}</h2>
|
|
|
<div class="info">
|
|
|
<div>
|
|
|
- <span>发布时间:{{ detail?['createTime'] }}</span>
|
|
|
+ <span>发布时间:{{ detail['createTime'] }}</span>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <span>阅读次数:{{ detail?['readNum'] }}</span>
|
|
|
+ <span>阅读次数:{{ detail['readNum'] }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="file_box">
|
|
@@ -15,7 +15,7 @@
|
|
|
<li v-for="(file, index) in fileUrls" @click="downloadFile(file['url'])" :key="index">{{ file['name'] }}</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class="content" v-html="detail?['content']"></div>
|
|
|
+ <div class="content" v-html="detail['content']"></div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -26,6 +26,10 @@ import { useFiles } from './mixins.ts'
|
|
|
const { fileUrls, queryFiles, downloadFile } = useFiles(request)
|
|
|
|
|
|
const detail = ref({
|
|
|
+ title: '',
|
|
|
+ createTime: '',
|
|
|
+ readNum: 0,
|
|
|
+ content: ''
|
|
|
});
|
|
|
/**
|
|
|
* 获取详情
|