Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e7aaa522
authored
Oct 26, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改storage set 默认为同步
1 parent
bd912229
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
utils/cache/storage.js
utils/cache/storage.js
View file @
e7aaa52
...
@@ -97,9 +97,9 @@ class Storage {
...
@@ -97,9 +97,9 @@ class Storage {
*
*
* @param {*} key | 要操作的键值
* @param {*} key | 要操作的键值
* @param {*} data | 要存储的值,会转换为 JSON 串进行存储
* @param {*} data | 要存储的值,会转换为 JSON 串进行存储
* @param {*} syncFlag | 同步状态,默认 false (异步),true 为同步
* @param {*} syncFlag | 同步状态,默认
同步
false (异步),true 为同步
*/
*/
set
=
(
key
,
data
,
syncFlag
)
=>
{
set
=
(
key
,
data
,
syncFlag
=
true
)
=>
{
let
tmpKey
=
this
.
checkKeyType
(
key
,
2
)
let
tmpKey
=
this
.
checkKeyType
(
key
,
2
)
if
(
tmpKey
)
{
if
(
tmpKey
)
{
tmpKey
=
this
.
addEvnToKey
(
tmpKey
)
tmpKey
=
this
.
addEvnToKey
(
tmpKey
)
...
...
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