添加课程分类;修改接口地址

This commit is contained in:
2023-01-30 14:21:53 +08:00
parent 115ae7ddf4
commit 44eb6e111a
5 changed files with 511 additions and 1 deletions

16
src/utils/custom.js Normal file
View File

@@ -0,0 +1,16 @@
const custom = {
getStdSubject: (data) => { // 获取标准类型格式
let arr= []
for(let item of data) {
// item.label = item.name
if(item.children){
arr.push(...custom.getStdSubject(item.children))
}
else{
arr.push(item)
}
}
return arr
}
}
export default custom