轮播修改

This commit is contained in:
PC-202306242200\Administrator
2024-09-11 09:55:52 +08:00
parent c71df49877
commit 538f0d7731
13 changed files with 62 additions and 60 deletions

View File

@@ -77,7 +77,6 @@ const RoleForm: React.FC = (props: any) => {
/>
<ProFormSwitch
rules={[{ required: true, message: '请输入' }]}
checkedChildren="启用"
unCheckedChildren="禁用"
name="status"

View File

@@ -35,7 +35,9 @@ const handleAdd = async (fields) => {
*
* @param fields
*/
const handleUpdate = async (fields: API.System.Menu) => {
const handleUpdate = async (fields) => {
fields.status = fields.status ? 1 : 0
const hide = message.loading('正在修改');
try {
await bannerUpdate(fields);
@@ -49,7 +51,7 @@ const handleUpdate = async (fields: API.System.Menu) => {
}
};
const handleRemoveOne = async (selectedRow: API.System.Menu) => {
const handleRemoveOne = async (selectedRow) => {
const hide = message.loading('正在删除');
if (!selectedRow) return true;
try {

View File

@@ -213,7 +213,6 @@ export default () => {
</ProForm.Item>
</ProForm.Group>
<ProFormSwitch
rules={[{ required: true, message: '请输入' }]}
checkedChildren="上架"
unCheckedChildren="下架"
name="isUp"