From a7cd5b2d39f856a72d901906a61af00b4e2039a6 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 19 七月 2024 09:45:43 +0800
Subject: [PATCH] fix:科目下拉
---
src/store/modules/exam.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/store/modules/exam.js b/src/store/modules/exam.js
index b96a649..d1fcbbe 100644
--- a/src/store/modules/exam.js
+++ b/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()
--
Gitblit v1.8.0