龚焕茏
2024-05-30 d6a88f59d6824e542a03544f915ff14112dfd040
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()