MCPcopy Create free account
hub / github.com/baiwumm/react-admin / setLocalStorageItem

Function setLocalStorageItem

Xmw_web/src/utils/index.ts:103–106  ·  view source on GitHub ↗
(key: string, value: T)

Source from the content-addressed store, hash-verified

101 * @author: 白雾茫茫丶
102 */
103export const setLocalStorageItem = <T>(key: string, value: T) => {
104 const result = JSON.stringify(value);
105 localStorage.setItem(key, result);
106}
107
108/**
109 * @description: 移除 localstorage 的值

Callers 7

getInitialStateFunction · 0.90
BasiLayoutFunction · 0.90
checkTimeoutFunction · 0.90
hanlderSubmitFunction · 0.90
LockSleepFunction · 0.90
LoginPageFunction · 0.90
logoutToLoginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected