fix: 🧩 修复测试bug

This commit is contained in:
2025-03-31 17:01:27 +08:00
parent aeaf68307f
commit 716b383a87
23 changed files with 222 additions and 52 deletions

View File

@@ -55,6 +55,22 @@ export const EDIT_FORM_DATA: FormItem[] = [
}
]
},
// {
// prop: "is_show1",
// placeholder: "",
// type: "radio",
// label: "是否启动: ",
// options: [
// {
// label: "是",
// value: 1
// },
// {
// label: "否",
// value: 0
// }
// ]
// },
{
prop: "image",
type: "upImg",

View File

@@ -48,12 +48,12 @@ export const COLUMNS = [
prop: "created_at"
},
{
align: "center",
label: "状态",
prop: "status",
width: 80
},
// {
// align: "center",
// label: "状态",
// prop: "status",
// width: 80
// },
{ prop: "operation", label: "操作", fixed: "right", width: 200 }
];

View File

@@ -234,7 +234,7 @@ getAttachmentRead();
//分类
const getCategorys = async () => {
const result = await getCategorysApi();
const result = await getCategorysApi({ is_show: 1 });
if (result?.code === 0) {
let arr: any[] = [];

View File

@@ -151,7 +151,7 @@ const handleInput = (row: any) => {
row.sort = integerRexg(row.sort);
};
const getCategorys = async () => {
const result = await getCategorysApi();
const result = await getCategorysApi({ is_show: 0 });
if (result?.code === 0) {
let arr: any[] = [];

View File

@@ -49,12 +49,12 @@ export const COLUMNS = [
prop: "created_at"
},
{
align: "center",
label: "状态",
prop: "status",
width: 80
},
// {
// align: "center",
// label: "状态",
// prop: "status",
// width: 80
// },
{ prop: "operation", label: "操作", fixed: "right", width: 200 }
];