Commit 0504af63 authored by daniel's avatar daniel

fix(cache): updateSettingStatus请求携带cmptId确保缓存正确清除

前端调用updateSettingStatus时未传cmptId,导致后端缓存清除逻辑被跳过,
模块启用/关闭后func接口仍返回旧数据。
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent f78f5f60
......@@ -58,6 +58,7 @@ $(function () {
let type = $(this).attr('data-type');
let param = {}
param.id = id;
param.cmptId = getCmptId();
if ($(this).attr('data-visibility') == 1) {
param.visibility = 0
} else {
......@@ -158,7 +159,7 @@ $(function () {
let status = $(this).parents('.public').attr('data-status');
if (status == 2) return;
let id = $(this).parents('.public').parents('.wzm-content-item').attr('data-id');
let param = { id: id };
let param = { id: id, cmptId: getCmptId() };
if (status == 1) {
param.status = 0;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment