|
@@ -4,18 +4,32 @@
|
|
|
<div class="subtitle">
|
|
|
<el-icon :size="14"><Clock /></el-icon>
|
|
|
{{ raw.publishTime }}
|
|
|
- <span style="vertical-align: middle;">来源:</span>
|
|
|
- <span style="color: #22ac38;vertical-align: middle;" v-text="raw.sourceWebsite"> </span>
|
|
|
+ <span style="vertical-align: middle">来源:</span>
|
|
|
+ <span
|
|
|
+ style="color: #22ac38; vertical-align: middle"
|
|
|
+ v-text="raw.sourceWebsite"
|
|
|
+ >
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<div v-html="raw.content"></div>
|
|
|
</el-scrollbar>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
+import { getDetail } from '@/api/index';
|
|
|
import { ref } from 'vue';
|
|
|
const raw = ref({});
|
|
|
-raw.value = JSON.parse(localStorage.getItem('analysis_detail')|| '{}');
|
|
|
-document.title = raw.value.title;
|
|
|
+const offset = JSON.parse(
|
|
|
+ localStorage.getItem('analysis_detail') || '{offset: ""}'
|
|
|
+).offset;
|
|
|
+getDetail({
|
|
|
+ data: {
|
|
|
+ offset,
|
|
|
+ },
|
|
|
+}).then(r => {
|
|
|
+ raw.value = r || {};
|
|
|
+ document.title = raw.value.title;
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style>
|