From 41e252403ab9ebaf6777a52b053e6df323a31489 Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期六, 20 二月 2021 23:13:47 +0800
Subject: [PATCH] fix(信息录入): bug修复
---
src/utils/myUtil.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/utils/myUtil.js b/src/utils/myUtil.js
index 6a3d908..029e96f 100644
--- a/src/utils/myUtil.js
+++ b/src/utils/myUtil.js
@@ -64,6 +64,9 @@
case 'd':
iReturn = Math.floor(dateSpan / (24 * 3600 * 1000))
break
+ case 'y':
+ iReturn = Math.floor(dateSpan / (365 * 24 * 3600 * 1000))
+ break
}
return iReturn
}
--
Gitblit v1.8.0