课程三级改回来接口

This commit is contained in:
joshen@zcwytd.com
2023-08-03 20:09:08 +08:00
parent a6c754ce43
commit 91d1669c4d

View File

@@ -1013,12 +1013,10 @@ export default {
async loadTypeData() { async loadTypeData() {
let $this = this; let $this = this;
try { try {
const result= await apiType.treeList(1,28,1); const { result, status } = await apiType.tree(1);
const {data:{ records},code} = result if (status === 200) {
if (code === 200) {
let tree = []; let tree = [];
records.forEach((item, index) => { result.forEach((item, index) => {
let newItem = { let newItem = {
type: 11, type: 11,
id: item.id, id: item.id,