lex-xin 8 months ago
parent
commit
e595e44f59

+ 3 - 2
src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage-notification.vue

@@ -33,7 +33,7 @@
                 编辑公告
               </div>
               <div class="p-item" @click="onOperation(item, 'top', index)">
-                {{item.topFlag ? '取消置顶': '设为置顶'}}
+                {{item.isTop ? '取消置顶': '设为置顶'}}
               </div>
               <div
                 class="p-item p-red"
@@ -242,10 +242,11 @@ const ManageNotification = defineComponent({
           data.page = 1;
           data.groupList = [];
           TUIMessage({
-            message: item.topFlag ? '取消置顶成功' : '设为置顶成功',
+            message: item.isTop ? '取消置顶成功' : '设为置顶成功',
             isH5: false,
             type: "success",
           });
+          getNotification();
         } else if (type === "delete") {
           await imGroupNoticeRemove({
             id: item.id,