浏览代码

预约时间处理

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||'',