Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 69311f56
authored
Nov 07, 2024
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改uitils中的deeoclone导出失败问题
1 parent
90700245
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
utils/logger/LocalLog.js
utils/utils.js
utils/logger/LocalLog.js
View file @
69311f5
...
...
@@ -26,9 +26,9 @@ class LocalLog {
// prettier-ignore
const
fileList
=
logFiles
.
reduce
((
list
,{
name
,
path
})
=>
{
const
fileDate
=
+
withinSpliter
(
name
.
split
(
'.'
).
shift
())
//
if(fileDate>=beginDate && fileDate<=endDate){
if
(
fileDate
>=
beginDate
&&
fileDate
<=
endDate
){
list
.
push
(
path
)
//
}
}
return
list
},[]);
// console.log('fileList', fileList)
...
...
utils/utils.js
View file @
69311f5
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 17:16:46
* @LastEditors:
前端 qianduan01@didihu.com.c
n
* @LastEditTime: 2024-
09-23 17:40:40
* @LastEditors:
limi
n
* @LastEditTime: 2024-
11-07 15:56:05
* @FilePath: \gl_tape\utils\utils.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -17,7 +17,7 @@ function convertDateTimeFormat(dateTimeStr, separator = '-') {
return
`
${
year
}${
separator
}${
month
}${
separator
}${
day
}
${
hours
}
:
${
minutes
}
:
${
seconds
}
`
}
function
deepClone
(
value
)
{
export
function
deepClone
(
value
)
{
// 排除原始类型的情况,函数时也满足此条件
if
(
typeof
value
!==
'object'
||
value
===
null
)
{
return
value
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment