panhui 3 년 전
부모
커밋
49b0a9963f
4개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      .env.development
  2. 1 1
      src/components/ChatInfo.vue
  3. 1 1
      src/plugins/chat.js
  4. 1 3
      src/views/chat/Detail.vue

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
-VUE_APP_BASE_URL=https://www.raex.vip/
+VUE_APP_BASE_URL=https://test.raex.vip/
 NODE_ENV=development
 VUE_APP_PUBLIC_PATH=/
 ASSETS_PATH=raex

+ 1 - 1
src/components/ChatInfo.vue

@@ -162,7 +162,7 @@ const noticeStr = computed(() => {
 });
 
 const timeStr = computed(() => {
-    let day1 = dayjs(props.info.time || props.info.timetag || props.info.createdAt);
+    let day1 = dayjs(props.info.time || props.info.createdAt);
     let day2 = '';
     if (props.beforeTime) {
         day2 = dayjs(props.beforeTime);

+ 1 - 1
src/plugins/chat.js

@@ -188,7 +188,7 @@ function getPushMsg(msgs, oldMsgs = []) {
         .map(item => {
             return {
                 ...item,
-                time: item.time || item.timetag || new Date(item.createdAt)
+                time: item.time || new Date(item.createdAt)
             };
         })
         .sort((a, b) => {

+ 1 - 3
src/views/chat/Detail.vue

@@ -32,9 +32,7 @@
                 v-for="(item, index) in list"
                 :key="index"
                 :info="item"
-                :beforeTime="
-                    index > 0 ? list[index - 1].time || list[index - 1].timetag || list[index - 1].createdAt : ''
-                "
+                :beforeTime="index > 0 ? list[index - 1].time || list[index - 1].createdAt : ''"
             ></chat-info>
         </div>