|
@@ -129,7 +129,11 @@ const saveTaskToServer = async () => {
|
|
!isCurrentTagged.value + ""
|
|
!isCurrentTagged.value + ""
|
|
)) as any;
|
|
)) as any;
|
|
if (res.data.success) {
|
|
if (res.data.success) {
|
|
- message.success({ content: "标记成功", key: mkey, duration: 2 });
|
|
|
|
|
|
+ message.success({
|
|
|
|
+ content: isCurrentTagged.value ? "取消标记成功" : "标记成功",
|
|
|
|
+ key: mkey,
|
|
|
|
+ duration: 2,
|
|
|
|
+ });
|
|
if (isCurrentTagged.value) {
|
|
if (isCurrentTagged.value) {
|
|
tagIds.value.splice(tagIds.value.indexOf(currentStudentId.value), 1);
|
|
tagIds.value.splice(tagIds.value.indexOf(currentStudentId.value), 1);
|
|
} else {
|
|
} else {
|