From 475c7fab4ed6390ca5a84cfc450c2adf7e1e9db6 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 17 五月 2024 09:32:10 +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