luolei преди 5 години
родител
ревизия
e98f119b76
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/components/PathInfo.vue

+ 1 - 1
src/components/PathInfo.vue

@@ -91,7 +91,7 @@
       getPathInfo(){
         let query = this.$route.query
         let hasQuery = JSON.stringify(query) == '{}'
-        let tmpTime = dateParser(!hasQuery&&query.recordTime) || (JSON.parse(localStorage.getItem('loginParam'))&&JSON.parse(localStorage.getItem('loginParam')).time)
+        let tmpTime = dateParser(!hasQuery&&query.recordTime) || (JSON.parse(localStorage.getItem('loginParam'))&&dateParser(JSON.parse(localStorage.getItem('loginParam')).time))
         this.time = tmpTime
         const params = {
           'hospitalCode':!hasQuery&&query.hospitalCode||'',