|
|
@@ -2,7 +2,10 @@
|
|
|
<div>
|
|
|
<page-header :routes="[{ name: '我的小组' }]">
|
|
|
<template slot="title">
|
|
|
- 我的小组 {{ this.groups.length > 0 && `「${this.groups[0].name}」` }}
|
|
|
+ 我的小组
|
|
|
+ <span v-if="groups.length > 0">
|
|
|
+ {{ `「${this.groups[0].name}」` }}
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</page-header>
|
|
|
<page-body>
|
|
|
@@ -185,7 +188,10 @@ export default {
|
|
|
try {
|
|
|
this.submitLoading = true;
|
|
|
this.isServerError = false;
|
|
|
- await postStudentGroup(this.name);
|
|
|
+ await postStudentGroup({
|
|
|
+ name: this.name,
|
|
|
+ courseId: this.$route.params.courseId
|
|
|
+ });
|
|
|
this.$toast.open({
|
|
|
message: `小组「${this.name}」创建成功`,
|
|
|
type: "is-success"
|