mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-24 02:02:53 +08:00
fix:查询学习进度接口调整
This commit is contained in:
@@ -334,9 +334,12 @@ export default {
|
||||
}
|
||||
},
|
||||
async loadProcess() {
|
||||
if (!this.projectId) return;
|
||||
if (!this.studentId || !this.projectId) return;
|
||||
try {
|
||||
const res = await getStuProjectProcess(this.projectId);
|
||||
const res = await getStuProjectProcess({
|
||||
studentId: this.studentId,
|
||||
projectId: this.projectId,
|
||||
});
|
||||
const data = res?.data || {};
|
||||
const total = Number(data.totalProgress ?? 0) | 0;
|
||||
const required = Number(data.compulsoryProgress ?? 0) | 0;
|
||||
|
||||
Reference in New Issue
Block a user