Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/scriptscat/scriptcat
/ deleteData
Function
deleteData
src/pages/components/ScriptStorage/index.tsx:66–71 ·
view source on GitHub ↗
(key: string)
Source
from the content-addressed store, hash-verified
64
65
// 删除单个键值
66
const deleteData = (key: string) => {
67
saveData(key, undefined);
68
Message.info({
69
content: t(
"delete_success"
),
70
});
71
};
72
73
// 清空所有键值
74
const clearData = () => {
Callers
1
render
Function · 0.85
Calls
2
saveData
Function · 0.85
info
Method · 0.45
Tested by
no test coverage detected