Przeglądaj źródła

研报智能布局的时间也格式化

cxmo 7 miesięcy temu
rodzic
commit
2be3b9b8cf
2 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 2
      src/views/report/Detail.vue
  2. 0 1
      src/views/report/HT_PDF.vue

+ 1 - 2
src/views/report/Detail.vue

@@ -78,7 +78,7 @@ async function getReportInfo() {
     endImgStyle.value=reportInfo.value.EndResource.Style?JSON.parse(reportInfo.value.EndResource.Style):[]
     layoutBaseInfo.value['研报标题']=reportInfo.value.Title
     layoutBaseInfo.value['研报作者']=reportInfo.value.Author
-    layoutBaseInfo.value['创建时间']=reportInfo.value.PublishTime
+    layoutBaseInfo.value['创建时间']= dayjs(reportInfo.value.PublishTime).format('YYYY-MM-DD HH:mm:ss')
 
     getAuthorFollowState()
     nextTick(() => {
@@ -187,7 +187,6 @@ onMounted(() => {
 })
 onUnmounted(() => {
   window.removeEventListener('scroll', handlePageScroll)
-  wx.miniProgram.navigateBack({})
 })
 
 </script>

+ 0 - 1
src/views/report/HT_PDF.vue

@@ -108,7 +108,6 @@ onMounted(() => {
 })
 onUnmounted(() => {
   window.removeEventListener('scroll', handlePageScroll)
-  wx.miniProgram.navigateBack({})
 })
 </script>