Skip to content

Commit

Permalink
Add new version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Geek-James committed Mar 13, 2020
1 parent 9136ef2 commit 40a0f5d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/config/global.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// 本地化存储
export const setLocalStore = (name, content) => {
if (!name) return;
if (typeof content !== 'string') {
content = JSON.stringify(content);
}
window.localStorage.setItem(name, content);
};
if (!name) return
if (typeof content !== 'string') {
content = JSON.stringify(content)
}
window.localStorage.setItem(name, content)
}

// 本地化获取
export const getLocalStore = (name) => {
if (!name) return;
return window.localStorage.getItem(name);
export const getLocalStore = name => {
if (!name) return
return window.localStorage.getItem(name)
}

// 本地化删除
export const removeLocalStore = (name) => {
if (!name) return;
return window.localStorage.removeItem(name);
export const removeLocalStore = name => {
if (!name) return
return window.localStorage.removeItem(name)
}

// 版本信息
export const _VERSION_ = "1.3.0";
export const _VERSION_ = '1.4.0'

0 comments on commit 40a0f5d

Please sign in to comment.