This commit is contained in:
@fawn-nine
2024-10-16 11:10:03 +08:00
parent bc7656e5ed
commit 2b43488ee9
3 changed files with 15 additions and 8 deletions

View File

@@ -536,7 +536,8 @@
},
})
.then(async res => {
if (res.code == 0) {
console.log(res);
if (res && res.code == 0) {
if (res.result.length > 0) {
_list = res.result
}
@@ -580,8 +581,8 @@
this.$http
.post('medical/home/getCourseMedicalTree')
.then(res => {
// console.log(res)
if (res.code == 0) {
console.log(res)
if (res && res.code == 0) {
if (res.labels.length > 0) {
this.curseTagList = res.labels
this.tabsid = res.labels[0].id