fix: 切换视图的问题,修复组织切换的问题 (#1701)

* fix: 切换视图的问题,修复组织切换的问题

* perf: 优化写法

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot
2022-04-21 11:07:56 +08:00
committed by GitHub
parent c5495d9846
commit 0e7b60a001
4 changed files with 40 additions and 40 deletions

View File

@@ -159,6 +159,10 @@ export function hasUUID(s) {
return s.search(uuidPattern) !== -1
}
export function replaceUUID(s, n) {
return s.replace(uuidPattern, n)
}
export function getDaysAgo(days, now) {
if (!now) {
now = new Date()