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

Function submit

web/src/pages/Channel/EditTagModal.js:174–185  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

172 };
173
174 const submit = async (data) => {
175 try {
176 const res = await API.put('/api/channel/tag', data);
177 if (res?.data?.success) {
178 showSuccess('标签更新成功!');
179 refresh();
180 handleClose();
181 }
182 } catch (error) {
183 showError(error);
184 }
185 };
186
187 useEffect(() => {
188 let localModelOptions = [...originModelOptions];

Callers 1

handleSaveFunction · 0.70

Calls 2

showSuccessFunction · 0.90
showErrorFunction · 0.90

Tested by

no test coverage detected