Forráskód Böngészése

Merge branch 'dev' of xiongzhu/raex_front into master

panhui 3 éve
szülő
commit
705e1c3d07

+ 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
 NODE_ENV=development
 VUE_APP_PUBLIC_PATH=/
 VUE_APP_PUBLIC_PATH=/
 ASSETS_PATH=raex
 ASSETS_PATH=raex

+ 1 - 1
src/components/ChatInfo.vue

@@ -162,7 +162,7 @@ const noticeStr = computed(() => {
 });
 });
 
 
 const timeStr = 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 = '';
     let day2 = '';
     if (props.beforeTime) {
     if (props.beforeTime) {
         day2 = dayjs(props.beforeTime);
         day2 = dayjs(props.beforeTime);

+ 1 - 1
src/plugins/chat.js

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

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

@@ -32,9 +32,7 @@
                 v-for="(item, index) in list"
                 v-for="(item, index) in list"
                 :key="index"
                 :key="index"
                 :info="item"
                 :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>
             ></chat-info>
         </div>
         </div>