mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
no message
This commit is contained in:
parent
18b7e17e95
commit
8f2f68dffc
2
docker/search/zincsearch/.gitignore
vendored
Normal file
2
docker/search/zincsearch/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
14
resources/assets/js/functions/common.js
vendored
14
resources/assets/js/functions/common.js
vendored
@ -343,15 +343,19 @@ const timezone = require("dayjs/plugin/timezone");
|
||||
|
||||
/**
|
||||
* 克隆对象
|
||||
* @param myObj
|
||||
* @param value
|
||||
* @param useParse
|
||||
* @returns {*}
|
||||
*/
|
||||
cloneJSON(myObj) {
|
||||
cloneJSON(value, useParse = false) {
|
||||
if (useParse === true) {
|
||||
return $A.jsonParse($A.jsonStringify(value))
|
||||
}
|
||||
try {
|
||||
return structuredClone(myObj);
|
||||
return structuredClone(value);
|
||||
} catch (e) {
|
||||
if (typeof myObj !== 'object' || myObj === null) return myObj;
|
||||
return $A.jsonParse($A.jsonStringify(myObj))
|
||||
if (typeof value !== 'object' || value === null) return value;
|
||||
return $A.jsonParse($A.jsonStringify(value))
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user