+
话题发表时间:
{{ info.topicInfo.publishedTimeShow}}
@@ -181,8 +185,10 @@ export default {
if (code === 0) {
this.info = data
- this.info.topicInfo.publishedTimeShow = dateFormat(new Date(this.info.topicInfo.publishedTime * 1000), "yyyy-MM-dd")
+ if (this.info.topicInfo && this.info.topicInfo.publishedTime) {
+ this.info.topicInfo.publishedTimeShow = dateFormat(new Date(this.info.topicInfo.publishedTime * 1000), "yyyy-MM-dd")
+ }
} else {
this.$message.error(msg);
}
diff --git a/src/views/modules/visual/cpts/analyse.vue b/src/views/modules/visual/cpts/analyse.vue
index 6292ddc5..10c0c512 100644
--- a/src/views/modules/visual/cpts/analyse.vue
+++ b/src/views/modules/visual/cpts/analyse.vue
@@ -83,7 +83,7 @@