fix: 🧩 修复测试bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user