qirong
2023-10-27 db5455a1bcea1d8e69cfc13fc8f74ea10f59ad6f
src/store/modules/exam.js
@@ -28,8 +28,8 @@
// actions
const actions = {
  initSubject ({ commit }, action) {
    subjectApi.list().then(re => {
  async initSubject ({ commit }, action) {
    await subjectApi.list().then(re => {
      commit('setSubjects', re.response)
      if (action !== undefined) {
        action()