bug-自定义福利关闭启用时提示错误

This commit is contained in:
黎永顺 2023-07-18 16:01:45 +08:00
parent ce93eff734
commit 192533e847
2 changed files with 1 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class CustomBenefitsTable extends Component {
handleCustomBenefitsSwitch = ({ id }, isUse) => {
Modal.confirm({
title: "信息确认",
content: `确认要${isUse ? "启用" : "停用"}`,
content: `确认要${isUse === "1" ? "启用" : "停用"}`,
onOk: () => {
const payload = { id, isUse };
updateCustomCategoryStatus(payload).then(({ status, errormsg }) => {

View File

@ -16,7 +16,6 @@ import CopySchemaModal from "./copySchemaModal";
import CustomBenefitsTable from "./customBenefitsTable";
import "./index.less";
const { getLabel } = WeaLocaleProvider;
@inject("programmeStore", "taxAgentStore", "salaryFileStore")
@observer