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

@@ -125,7 +125,7 @@ const handleResetClick = () => {
//视频分类接口
const getVideoClassList = async () => {
const result = await getVideoClassListApi();
const result = await getVideoClassListApi({ is_show: 0 });
if (result?.code === 0) {
let arr: any[] = [];
if (result?.data?.length) {
@@ -141,6 +141,25 @@ const getVideoClassList = async () => {
}
};
getVideoClassList();
const getVideoClassEditList = async () => {
const result = await getVideoClassListApi({ is_show: 1 });
if (result?.code === 0) {
let arr: any[] = [];
if (result?.data?.length) {
result?.data?.forEach((item: any) => {
let obj = {
value: item.id,
label: item.name
};
arr.push(obj);
});
dataStore.editFormData[1].options = arr;
}
}
};
getVideoClassEditList();
//添加
const handleAdd = () => {
dataStore.visible = true;