Browse Source

没有预约时间

luolei 5 years ago
parent
commit
235b313a71
2 changed files with 4 additions and 1 deletions
  1. 1 1
      src/components/PathInfo.vue
  2. 3 0
      src/utils/tools.js

+ 1 - 1
src/components/PathInfo.vue

@@ -99,7 +99,7 @@
           'doctorCode':!hasQuery&&query.doctorCode||'',
           'patientCode':!hasQuery&&query.patientCode||'',
           'recordId':!hasQuery&&query.recordId||'',
-          'recordTime':!hasQuery&&query.recordTime
+          'recordTime':!hasQuery&&query.recordTime||''
         }
         if(!hasQuery&&query.scan){//扫码进入的
           localStorage.removeItem('loginParam')

+ 3 - 0
src/utils/tools.js

@@ -320,6 +320,9 @@ function compare(property){
 
 // 时间戳转换日期
 function dateParser(timestamp,link = '-'){
+  if(!timestamp){
+    return ''
+  }
   if(timestamp.length == 10){
     timestamp = timestamp*1000
   }