lex-xin 6 months ago
parent
commit
1a9192566a

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

@@ -147,6 +147,7 @@ import {
   imGroupNoticeRemove,
 } from "../../../../api";
 import Slider from "../../../components/sliderTUI/index.vue";
+import TUIMessage from "../../../components/messageTUI/index";
 const ManageNotification = defineComponent({
   components: {
     Slider,
@@ -242,8 +243,13 @@ const ManageNotification = defineComponent({
           data.id = "";
           ctx.emit("changeStatus", "addDetail");
         }
-      } catch (e) {
+      } catch(e) {
         //
+        TUIMessage({
+          message: e.message,
+          isH5: false,
+          type: "error",
+        });
       }
       popoverRef.value?.setShow(false);
     };
@@ -276,8 +282,13 @@ const ManageNotification = defineComponent({
         data.page = 1;
         data.groupDetail = [];
         getNotification();
-      } catch {
+      }  catch(e) {
         //
+        TUIMessage({
+          message: e.message,
+          isH5: false,
+          type: "error",
+        });
       }
     };
 

+ 0 - 1
src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage-notification.vue

@@ -295,7 +295,6 @@ const ManageNotification = defineComponent({
         ctx.emit("changeStatus", "submit");
         data.page = 1;
         data.groupList = [];
-        console.log('55555555555555555')
         getNotification();
       } catch(e) {
         //