MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / clearData

Function clearData

src/pages/components/ScriptStorage/index.tsx:74–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73 // 清空所有键值
74 const clearData = () => {
75 saveRawData({});
76 Message.info({
77 content: t("clear_success"),
78 });
79 };
80
81 useEffect(() => {
82 if (!script) {

Callers 2

ScriptStorageFunction · 0.85
initMethod · 0.85

Calls 2

saveRawDataFunction · 0.85
infoMethod · 0.45

Tested by

no test coverage detected