Update background message name

This commit is contained in:
2024-04-24 13:14:30 +08:00
parent 8bf22edbda
commit 46d7d4b26f
6 changed files with 37 additions and 38 deletions
+4 -11
View File
@@ -28,20 +28,13 @@ const submitForm = (body: FormValue) => {
sendToBackground({
name: "read",
body: {
action: "submitAddForm",
action: "addRead",
values: body,
},
}).then((res) => {
if (res.status === "Success") {
add({
content: "提交成功",
});
}
else {
add({
content: res.msg,
});
}
add({
content: res.msg,
});
}).catch((e) => {
if (e instanceof Error) {
add({