|
@@ -44,7 +44,7 @@ async function getAddressData(id: number) {
|
|
|
getSchoolData(dataParams);
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
- console.log(error);
|
|
|
+ console.log(error.message);
|
|
|
if (id == 0) {
|
|
|
provinceData.value = [{area_id: 0, area_name: "全部省"}];
|
|
|
} else {
|
|
@@ -66,7 +66,7 @@ async function getSchoolData(params: AreaParams) {
|
|
|
.catch((error) => {
|
|
|
schoolData.value = [];
|
|
|
schoolData.value?.unshift({num: "", school_id: 0, name: "全部学校"});
|
|
|
- console.log(error);
|
|
|
+ console.log(error.message);
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
@@ -82,7 +82,7 @@ async function getGradeData(schoolId: number) {
|
|
|
.catch((error) => {
|
|
|
gradeData.value = [];
|
|
|
gradeData.value?.unshift({id: 0, name: "全部班级"});
|
|
|
- console.log(error);
|
|
|
+ console.log(error.message);
|
|
|
});
|
|
|
}
|
|
|
// 改变时间
|
|
@@ -102,7 +102,7 @@ async function getDataCard(params: AreaParams) {
|
|
|
cardStatus.value = true;
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
- console.log(error);
|
|
|
+ console.log(error.message);
|
|
|
});
|
|
|
}
|
|
|
/**
|