|
@@ -341,16 +341,17 @@
|
|
|
var schoolDetail = await axios.post('/api-student/open/school/detail', {
|
|
|
orchestraId: this.orchestraId
|
|
|
})
|
|
|
- if (schoolDetail.data.code === 200) {
|
|
|
+ if (schoolDetail.data.code === 200 && schoolDetail.data.data) {
|
|
|
var schoolSystem = schoolDetail.data.data.schoolSystem || 'sixYearSystem'
|
|
|
this.schoolId = schoolDetail.data.data.id
|
|
|
- if (schoolDetail === 'sixYearSystem') {
|
|
|
+ if (schoolSystem === 'sixYearSystem') {
|
|
|
this.currentGrade.push({ text: '六年级', value: 6 })
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
var orchestraDetail = await axios.get('/api-student/open/orchestra/detail/' + this.orchestraId)
|
|
|
- if (orchestraDetail.data.code === 200) {
|
|
|
+ if (orchestraDetail.data.code === 200 && orchestraDetail.data.data) {
|
|
|
this.orchestraName = orchestraDetail.data.data.name || ''
|
|
|
}
|
|
|
} catch {
|