mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
课程三级改回来接口
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user