MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / saveConfig

Function saveConfig

web/src/components/playground/configStorage.js:9–19  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

7 * @param {Object} config - 要保存的配置对象
8 */
9export const saveConfig = (config) => {
10 try {
11 const configToSave = {
12 ...config,
13 timestamp: new Date().toISOString(),
14 };
15 localStorage.setItem(STORAGE_KEYS.CONFIG, JSON.stringify(configToSave));
16 } catch (error) {
17 console.error('保存配置失败:', error);
18 }
19};
20
21/**
22 * 保存消息到 localStorage

Callers 1

usePlaygroundStateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected