|
@@ -58,7 +58,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async setTeachers ({ commit, state }, force) {
|
|
|
- if (!state.subjects.length || force === true) {
|
|
|
+ if (!state.teachers.length || force === true) {
|
|
|
try {
|
|
|
const res = await getTeacher()
|
|
|
commit('commit_teachers', res.data)
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async setSchools ({ commit, state }, force) {
|
|
|
- if (!state.subjects.length || force === true) {
|
|
|
+ if (!state.schools.length || force === true) {
|
|
|
try {
|
|
|
const res = await getSchool()
|
|
|
commit('commit_schools', res.data)
|
|
@@ -74,7 +74,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async setVipGroupCategory ({ commit, state }, force) {
|
|
|
- if (!state.subjects.length || force === true) {
|
|
|
+ if (!state.vipGroupCategory.length || force === true) {
|
|
|
try {
|
|
|
const res = await vipGroupCategory()
|
|
|
commit('commit_vip_group_category', res.data)
|