Explorar el Código

修复浏览刷新文章更新时间记录

枫叶秋林 hace 2 años
padre
commit
083c606d2b
Se han modificado 3 ficheros con 2 adiciones y 5 borrados
  1. 0 2
      src/components/cod/index.vue
  2. 1 1
      src/layouts/post.vue
  3. 1 2
      src/views/plate/platelist.vue

+ 0 - 2
src/components/cod/index.vue

@@ -107,9 +107,7 @@ onMounted(async () => {
       }
     }
     if (success === 4) {
-      console.log('通过')
       codsuccess('success', encrypt(JSON.stringify(seed)))
-
       return
     }
     if (seed.length === 4) {

+ 1 - 1
src/layouts/post.vue

@@ -61,7 +61,7 @@ const bt_comment = () => {
                        :title="data.title"
                        :plateId="data.plateId"
                        :content="data.content"
-                       :updatedAt="data.updatedAt"
+                       :updatedAt="data.updatedTime"
                        :Istop="data.isTop" />
         </template>
         <template #fallback>

+ 1 - 2
src/views/plate/platelist.vue

@@ -105,12 +105,11 @@ if (id != 0) {
   <div v-for="(item,i) of data.data"
        :key="i"
        style="margin: 10px 0;">
-
     <platePostItem :id="item.id"
                    :title="item.title"
                    :content="item.content"
                    :authorid="item.authorId"
-                   :time="item.updatedAt"
+                   :time="item.updatedTime"
                    :numberOfReplies="item.comments"
                    :views="item.views"
                    :istop="Boolean(item.isTop) " />