longz
2026-06-29 9d4cbff7464ebfd7803c2ce53ded49d0f73fe011
frontend-admin/src/views/SensitiveWordsView.vue
@@ -104,6 +104,7 @@
import { ElMessage, ElMessageBox } from "element-plus";
import type { UploadRequestOptions } from "element-plus";
import http from "../api/http";
import { normalizeFormData } from "../utils/formHelper";
type Row = {
  id: number;
@@ -208,14 +209,15 @@
  saving.value = true;
  try {
    const payload = normalizeFormData({ word });
    if (editingId.value == null) {
      await http.post("/config/sensitive-words/manage", { word });
      await http.post("/config/sensitive-words/manage", payload);
      ElMessage.success("已新增");
      page.value = 1;
    } else {
      await http.put(`/config/sensitive-words/manage/${editingId.value}`, {
        uuid: form.uuid,
        word,
        ...payload,
      });
      ElMessage.success("已保存");
    }